]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120389: Add PyLong_FromInt64() and PyLong_AsInt64() (#120390)
authorVictor Stinner <vstinner@python.org>
Wed, 28 Aug 2024 10:16:13 +0000 (12:16 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Aug 2024 10:16:13 +0000 (10:16 +0000)
commit4c6dca82925bd4be376a3e4a53c8104ad0b0cb5f
treede2034d6cf355311457c02ba37a73a7932568639
parent1a0b828994ed4ec1f2ba05123995a7d1e852f4b4
gh-120389: Add PyLong_FromInt64() and PyLong_AsInt64() (#120390)

Add new functions to convert C <stdint.h> numbers from/to Python int:

* PyLong_FromInt32()
* PyLong_FromUInt32()
* PyLong_FromInt64()
* PyLong_FromUInt64()
* PyLong_AsInt32()
* PyLong_AsUInt32()
* PyLong_AsInt64()
* PyLong_AsUInt64()
13 files changed:
Doc/c-api/long.rst
Doc/conf.py
Doc/data/stable_abi.dat
Doc/whatsnew/3.14.rst
Include/longobject.h
Lib/test/test_capi/test_long.py
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/C API/2024-06-19-17-27-22.gh-issue-120389.GSZeHF.rst [new file with mode: 0644]
Misc/stable_abi.toml
Modules/_testcapimodule.c
Modules/_testlimitedcapi/long.c
Objects/longobject.c
PC/python3dll.c