gh-101291: Add versionadded directives for PyUnstable_Long_* (#125384)

This commit is contained in:
Sergey B Kirpichev 2024-10-13 20:38:42 +03:00 committed by GitHub
parent e79bbd147f
commit c6d7b644c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -608,6 +608,9 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
Exactly what values are considered compact is an implementation detail Exactly what values are considered compact is an implementation detail
and is subject to change. and is subject to change.
.. versionadded:: 3.12
.. c:function:: Py_ssize_t PyUnstable_Long_CompactValue(const PyLongObject* op) .. c:function:: Py_ssize_t PyUnstable_Long_CompactValue(const PyLongObject* op)
If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`, If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`,
@ -615,3 +618,5 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
Otherwise, the return value is undefined. Otherwise, the return value is undefined.
.. versionadded:: 3.12