Fix incorrect docstring I changed a while back.

New wording is taken straight from the PEP, so this time should be good
:)
This commit is contained in:
Éric Araujo 2011-11-03 04:34:09 +01:00
parent c465b2f843
commit e2544bc909

View 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