diff options
author | RUANG (James Roy) <longjinyii@outlook.com> | 2024-11-12 13:18:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-12 13:18:06 (GMT) |
commit | 8ff7efb46d34ee454239bd86ff5136f386b9749b (patch) | |
tree | 0dae8e79e19bbec4ea0546670604b4ef0f8a590b /Misc/NEWS.d | |
parent | abb90ba46c597a1b192027e914ad312dd62d2462 (diff) | |
download | cpython-8ff7efb46d34ee454239bd86ff5136f386b9749b.zip cpython-8ff7efb46d34ee454239bd86ff5136f386b9749b.tar.gz cpython-8ff7efb46d34ee454239bd86ff5136f386b9749b.tar.bz2 |
gh-126061: Add PyLong_IsPositive/Zero/Negative() functions (#126065)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/C_API/2024-10-28-15-56-03.gh-issue-126061.Py51_1.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C_API/2024-10-28-15-56-03.gh-issue-126061.Py51_1.rst b/Misc/NEWS.d/next/C_API/2024-10-28-15-56-03.gh-issue-126061.Py51_1.rst new file mode 100644 index 0000000..0a4ad4e --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2024-10-28-15-56-03.gh-issue-126061.Py51_1.rst @@ -0,0 +1,3 @@ +Add :c:func:`PyLong_IsPositive`, :c:func:`PyLong_IsNegative` +and :c:func:`PyLong_IsZero` for checking if a :c:type:`PyLongObject` +is positive, negative, or zero, respectively. |