Skip to content

Commit

Permalink
pythongh-101291: Add versionadded directives for PyUnstable_Long_* (p…
Browse files Browse the repository at this point in the history
…ythonGH-125384)

(cherry picked from commit c6d7b64)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
  • Loading branch information
skirpichev authored and miss-islington committed Oct 13, 2024
1 parent c9ead96 commit 517f0b4
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 @@ -538,10 +538,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 517f0b4

Please sign in to comment.