]> granicus.if.org Git - python/commitdiff
Fix incorrect docstring I changed a while back.
authorÉric Araujo <merwok@netwok.org>
Thu, 3 Nov 2011 03:34:09 +0000 (04:34 +0100)
committerÉric Araujo <merwok@netwok.org>
Thu, 3 Nov 2011 03:34:09 +0000 (04:34 +0100)
New wording is taken straight from the PEP, so this time should be good
:)

Lib/numbers.py

index f35704dd3940faab75cb80caf2ab0bd87ab89a51..ecfad7cef8b69e3b99e7907882061009c19862e6 100644 (file)
@@ -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