mirror of
https://github.com/python/cpython.git
synced 2024-11-27 20:04:41 +08:00
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:
parent
c465b2f843
commit
e2544bc909
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user