mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Store actual ints, not pointers to them in the interpreter state. (GH-29274)
This commit is contained in:
parent
13d9205f40
commit
4fc68560ea
5 changed files with 10 additions and 21 deletions
|
@ -335,7 +335,7 @@ struct _is {
|
|||
The integers that are preallocated are those in the range
|
||||
-_PY_NSMALLNEGINTS (inclusive) to _PY_NSMALLPOSINTS (not inclusive).
|
||||
*/
|
||||
PyLongObject* small_ints[_PY_NSMALLNEGINTS + _PY_NSMALLPOSINTS];
|
||||
PyLongObject small_ints[_PY_NSMALLNEGINTS + _PY_NSMALLPOSINTS];
|
||||
struct _Py_bytes_state bytes;
|
||||
struct _Py_unicode_state unicode;
|
||||
struct _Py_float_state float_state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue