]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add impl-detail block for PyLong_FromLong docs (#126422)
authorSergey B Kirpichev <skirpichev@gmail.com>
Tue, 9 Sep 2025 09:22:40 +0000 (12:22 +0300)
committerGitHub <noreply@github.com>
Tue, 9 Sep 2025 09:22:40 +0000 (11:22 +0200)
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Doc/c-api/long.rst

index 31e2cd57034467ac3f59360e92433909454c62ec..8370dcecad3344369df533b8dea452b99ccf1d1b 100644 (file)
@@ -40,9 +40,11 @@ distinguished from a number.  Use :c:func:`PyErr_Occurred` to disambiguate.
 
    Return a new :c:type:`PyLongObject` object from *v*, or ``NULL`` on failure.
 
-   The current implementation keeps an array of integer objects for all integers
-   between ``-5`` and ``256``. When you create an int in that range you actually
-   just get back a reference to the existing object.
+   .. impl-detail::
+
+      CPython keeps an array of integer objects for all integers
+      between ``-5`` and ``256``.  When you create an int in that range
+      you actually just get back a reference to the existing object.
 
 
 .. c:function:: PyObject* PyLong_FromUnsignedLong(unsigned long v)