From: Éric Araujo Date: Thu, 3 Nov 2011 03:34:09 +0000 (+0100) Subject: Fix incorrect docstring I changed a while back. X-Git-Tag: v3.2.3rc1~433^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2544bc90941835bbac89db2a50bbceab0dea48f;p=thirdparty%2FPython%2Fcpython.git Fix incorrect docstring I changed a while back. New wording is taken straight from the PEP, so this time should be good :) --- diff --git a/Lib/numbers.py b/Lib/numbers.py index f35704dd3940..ecfad7cef8b6 100644 --- a/Lib/numbers.py +++ b/Lib/numbers.py @@ -303,7 +303,7 @@ class Integral(Rational): raise NotImplementedError def __index__(self): - """someobject[self]""" + """Called whenever an index is needed, such as in slicing""" return int(self) @abstractmethod