From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 13 Oct 2024 17:45:59 +0000 (+0200) Subject: [3.12] gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384) ... X-Git-Tag: v3.12.8~212 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=243a8a9d68a87d103340b894366497101e6b0226;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384) (#125408) gh-101291: Add versionadded directives for PyUnstable_Long_* (GH-125384) (cherry picked from commit c6d7b644c2425b397cfb641f336bea70eb8a329a) Co-authored-by: Sergey B Kirpichev --- diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index af86810c6b16..972d69a51945 100644 --- a/Doc/c-api/long.rst +++ b/Doc/c-api/long.rst @@ -350,6 +350,9 @@ 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`, @@ -357,3 +360,5 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate. Otherwise, the return value is undefined. + .. versionadded:: 3.12 +