https://github.com/python/cpython/commit/5eb7cd3e38e7325fd452e9eaa9e377c422e9f94d commit: 5eb7cd3e38e7325fd452e9eaa9e377c422e9f94d branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: hugovk <[email protected]> date: 2025-09-11T12:23:36+03:00 summary:
[3.14] Add impl-detail block for PyLong_FromLong docs (GH-126422) (#138694) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: Brian Schubert <[email protected]> files: M Doc/c-api/long.rst diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index 31e2cd57034467..8370dcecad3344 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) _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
