]> granicus.if.org Git - python/commitdiff
Fix small inaccuracy: there is no index function
authorÉric Araujo <merwok@netwok.org>
Thu, 23 Dec 2010 18:41:33 +0000 (18:41 +0000)
committerÉric Araujo <merwok@netwok.org>
Thu, 23 Dec 2010 18:41:33 +0000 (18:41 +0000)
Lib/numbers.py

index 82960f04cea276da84890435156a7810b554a672..b5a49c67c5afee01fb4cbe3ead6dc1af57848452 100644 (file)
@@ -303,7 +303,7 @@ class Integral(Rational):
         raise NotImplementedError
 
     def __index__(self):
-        """index(self)"""
+        """someobject[self]"""
         return int(self)
 
     @abstractmethod