]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Add impl-detail block for PyLong_FromLong docs (GH-126422) (#138695)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 9 Sep 2025 09:30:44 +0000 (11:30 +0200)
committerGitHub <noreply@github.com>
Tue, 9 Sep 2025 09:30:44 +0000 (09:30 +0000)
Add impl-detail block for PyLong_FromLong docs (GH-126422)
(cherry picked from commit fd2e3d163340a29fc3ad1e9be3289fee64979dbd)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Doc/c-api/long.rst

index 2d36dfe80362f3b0c8ad7e83744d3af9e0fee5ee..7dfb26d0ad5ea93c78664c0f6c693ce339a70ba2 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)