Skip to content

Commit

Permalink
[3.12] pythongh-101291: Add versionadded directives for PyUnstable_Lo…
Browse files Browse the repository at this point in the history
…ng_* (pythonGH-125384) (python#125408)

pythongh-101291: Add versionadded directives for PyUnstable_Long_* (pythonGH-125384)
(cherry picked from commit c6d7b64)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
  • Loading branch information
miss-islington and skirpichev authored Oct 13, 2024
1 parent 00c596d commit 243a8a9
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 @@ -350,10 +350,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 243a8a9

Please sign in to comment.