mirror of
https://github.com/python/cpython.git
synced 2025-11-27 13:45:25 +00:00
Fix small inaccuracy: there is no index function
This commit is contained in:
parent
0d26798bbc
commit
d699255b42
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ class Integral(Rational):
|
||||||
raise NotImplementedError
|
raise NotImplementedError
|
||||||
|
|
||||||
def __index__(self):
|
def __index__(self):
|
||||||
"""index(self)"""
|
"""someobject[self]"""
|
||||||
return int(self)
|
return int(self)
|
||||||
|
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue