Skip to content

Commit

Permalink
gh-101291: Add versionadded directives for PyUnstable_Long_* (#125384)
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev authored Oct 13, 2024
1 parent e79bbd1 commit c6d7b64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Doc/c-api/long.rst
Original file line number Diff line number Diff line change
Expand Up @@ -608,10 +608,15 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
Exactly what values are considered compact is an implementation detail
and is subject to change.
.. versionadded:: 3.12
.. c:function:: Py_ssize_t PyUnstable_Long_CompactValue(const PyLongObject* op)
If *op* is compact, as determined by :c:func:`PyUnstable_Long_IsCompact`,
return its value.
Otherwise, the return value is undefined.
.. versionadded:: 3.12

0 comments on commit c6d7b64

Please sign in to comment.