]> granicus.if.org Git - python/commitdiff
Update docstring with more useful text (from the PEP)
authorÉric Araujo <merwok@netwok.org>
Sun, 26 Feb 2012 00:37:47 +0000 (01:37 +0100)
committerÉric Araujo <merwok@netwok.org>
Sun, 26 Feb 2012 00:37:47 +0000 (01:37 +0100)
Lib/numbers.py

index 2592643c1362bb27b08c8985855a243343093953..bdc6dd65213b967b88537d386961bb9389de6902 100644 (file)
@@ -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