Skip to content

Commit 282bd0f

Browse files
miss-islingtonskirpichevbrianschubert
authored
[3.13] Add impl-detail block for PyLong_FromLong docs (pythonGH-126422) (python#138695)
Add impl-detail block for PyLong_FromLong docs (pythonGH-126422) (cherry picked from commit fd2e3d1) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: Brian Schubert <[email protected]>
1 parent 85649b7 commit 282bd0f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Doc/c-api/long.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate.
4040
4141
Return a new :c:type:`PyLongObject` object from *v*, or ``NULL`` on failure.
4242
43-
The current implementation keeps an array of integer objects for all integers
44-
between ``-5`` and ``256``. When you create an int in that range you actually
45-
just get back a reference to the existing object.
43+
.. impl-detail::
44+
45+
CPython keeps an array of integer objects for all integers
46+
between ``-5`` and ``256``. When you create an int in that range
47+
you actually just get back a reference to the existing object.
4648
4749
4850
.. c:function:: PyObject* PyLong_FromUnsignedLong(unsigned long v)

0 commit comments

Comments
 (0)