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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ede557d340f8cafe099322d2933fc153b649a9f;p=python Update docstring with more useful text (from the PEP) --- diff --git a/Lib/numbers.py b/Lib/numbers.py index 2592643c13..bdc6dd6521 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