]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-36048: Use __index__() instead of __int__() for implicit conversion if available...
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 25 Feb 2019 15:57:58 +0000 (17:57 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Feb 2019 15:57:58 +0000 (17:57 +0200)
commit6a44f6eef3d0958d88882347190b3e2d1222c2e9
treebb6474b1e094a672837c3333a081fa4d5d7638f2
parentd90a141bb947b68601f8d1f37bc98f7b524f0e01
bpo-36048: Use __index__() instead of __int__() for implicit conversion if available. (GH-11952)

Deprecate using the __int__() method in implicit conversions of Python
numbers to C integers.
18 files changed:
Doc/c-api/long.rst
Doc/c-api/number.rst
Doc/whatsnew/3.8.rst
Include/longobject.h
Lib/ctypes/test/test_numbers.py
Lib/datetime.py
Lib/test/datetimetester.py
Lib/test/test_array.py
Lib/test/test_getargs2.py
Lib/test/test_int.py
Lib/test/test_zlib.py
Misc/NEWS.d/next/Core and Builtins/2019-02-20-08-51-04.bpo-36048.I3LJt9.rst [new file with mode: 0644]
Modules/arraymodule.c
Modules/zlibmodule.c
Objects/abstract.c
Objects/longobject.c
Python/getargs.c
Tools/clinic/clinic.py