mirror of https://github.com/python/cpython
parent
092135ebc8
commit
2c0781853a
|
@ -2102,9 +2102,9 @@ left undefined.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
When :meth:`__index__` is defined, :meth:`__int__` should also be defined,
|
In order to have a coherent integer type class, when :meth:`__index__` is
|
||||||
and both shuld return the same value, in order to have a coherent integer
|
defined :meth:`__int__` should also be defined, and both should return
|
||||||
type class.
|
the same value.
|
||||||
|
|
||||||
|
|
||||||
.. _context-managers:
|
.. _context-managers:
|
||||||
|
|
Loading…
Reference in New Issue