mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
Merge 3.2
This commit is contained in:
commit
6fc41dd1e3
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue