From: Sergey B Kirpichev Date: Tue, 9 Sep 2025 09:22:40 +0000 (+0300) Subject: Add impl-detail block for PyLong_FromLong docs (#126422) X-Git-Tag: v3.15.0a1~435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fd2e3d163340a29fc3ad1e9be3289fee64979dbd;p=thirdparty%2FPython%2Fcpython.git Add impl-detail block for PyLong_FromLong docs (#126422) Co-authored-by: Brian Schubert --- diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index 31e2cd570344..8370dcecad33 100644 --- a/Doc/c-api/long.rst +++ b/Doc/c-api/long.rst @@ -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)