From: Tomasz DÄ…dela <39437649+tdadela@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:32:02 +0000 (+0200) Subject: gh-133059: Update documentation of preallocated integer range in `long.rst` (GH-140231) X-Git-Tag: v3.15.0a2~408 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67c98ad8ef5530ddfd332a7e9d4257791dc35b1c;p=thirdparty%2FPython%2Fcpython.git gh-133059: Update documentation of preallocated integer range in `long.rst` (GH-140231) --- diff --git a/Doc/c-api/long.rst b/Doc/c-api/long.rst index 8370dcecad33..fcb20f7c93cb 100644 --- a/Doc/c-api/long.rst +++ b/Doc/c-api/long.rst @@ -43,7 +43,7 @@ distinguished from a number. Use :c:func:`PyErr_Occurred` to disambiguate. .. impl-detail:: CPython keeps an array of integer objects for all integers - between ``-5`` and ``256``. When you create an int in that range + between ``-5`` and ``1024``. When you create an int in that range you actually just get back a reference to the existing object.