diff options
author | Victor Stinner <vstinner@python.org> | 2023-08-24 21:55:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 21:55:30 (GMT) |
commit | be436e08b8bd9fcd2202d6ce4d924bba7551e96f (patch) | |
tree | df142099ae50383af0e76ed09f5b4d8d1cc15d3e /Misc/NEWS.d/next/C API | |
parent | feb9a49c9c09d08cb8c24cb74d90a218de6af244 (diff) | |
download | cpython-be436e08b8bd9fcd2202d6ce4d924bba7551e96f.zip cpython-be436e08b8bd9fcd2202d6ce4d924bba7551e96f.tar.gz cpython-be436e08b8bd9fcd2202d6ce4d924bba7551e96f.tar.bz2 |
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().
Diffstat (limited to 'Misc/NEWS.d/next/C API')
-rw-r--r-- | Misc/NEWS.d/next/C API/2023-08-24-20-08-02.gh-issue-108014.20DOSS.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-08-24-20-08-02.gh-issue-108014.20DOSS.rst b/Misc/NEWS.d/next/C API/2023-08-24-20-08-02.gh-issue-108014.20DOSS.rst new file mode 100644 index 0000000..5c1b04f --- /dev/null +++ b/Misc/NEWS.d/next/C API/2023-08-24-20-08-02.gh-issue-108014.20DOSS.rst @@ -0,0 +1,4 @@ +Add :c:func:`PyLong_AsInt` function: similar to :c:func:`PyLong_AsLong`, but +store the result in a C :c:expr:`int` instead of a C :c:expr:`long`. +Previously, it was known as the the private function :c:func:`!_PyLong_AsInt` +(with an underscore prefix). Patch by Victor Stinner. |