]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-108444: Add PyLong_AsInt() public function (#108445)
authorVictor Stinner <vstinner@python.org>
Thu, 24 Aug 2023 21:55:30 +0000 (23:55 +0200)
committerGitHub <noreply@github.com>
Thu, 24 Aug 2023 21:55:30 +0000 (23:55 +0200)
commitbe436e08b8bd9fcd2202d6ce4d924bba7551e96f
treedf142099ae50383af0e76ed09f5b4d8d1cc15d3e
parentfeb9a49c9c09d08cb8c24cb74d90a218de6af244
gh-108444: Add PyLong_AsInt() public function (#108445)

* Rename _PyLong_AsInt() to PyLong_AsInt().
* Add documentation.
* Add test.
* For now, keep _PyLong_AsInt() as an alias to PyLong_AsInt().
13 files changed:
Doc/c-api/long.rst
Doc/data/stable_abi.dat
Doc/whatsnew/3.13.rst
Include/cpython/longobject.h
Include/longobject.h
Lib/test/test_capi/test_long.py
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/C API/2023-08-24-20-08-02.gh-issue-108014.20DOSS.rst [new file with mode: 0644]
Misc/stable_abi.toml
Modules/_testcapi/clinic/long.c.h
Modules/_testcapi/long.c
Objects/longobject.c
PC/python3dll.c