mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Update docstring with more useful text (from the PEP)
This commit is contained in:
parent
a318a3b2fb
commit
9ede557d34
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue