From: Éric Araujo Date: Sun, 26 Feb 2012 00:37:47 +0000 (+0100) Subject: Update docstring with more useful text (from the PEP) X-Git-Tag: v2.7.4rc1~1016^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ede557d340f8cafe099322d2933fc153b649a9f;p=thirdparty%2FPython%2Fcpython.git Update docstring with more useful text (from the PEP) --- diff --git a/Lib/numbers.py b/Lib/numbers.py index 2592643c1362..bdc6dd65213b 100644 --- a/Lib/numbers.py +++ b/Lib/numbers.py @@ -303,7 +303,7 @@ class Integral(Rational): raise NotImplementedError def __index__(self): - """index(self)""" + """Called whenever an index is needed, such as in slicing""" return long(self) @abstractmethod