diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-10-19 20:27:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 20:27:46 (GMT) |
commit | 9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf (patch) | |
tree | 16f0ebdbd2b3c82e8c84af9a94e13b0e2fb1ba5d /Include | |
parent | 52fcba651288ac1c0f9b1fb71379f1dad54ee1da (diff) | |
download | cpython-9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf.zip cpython-9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf.tar.gz cpython-9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf.tar.bz2 |
gh-98417: Store int_max_str_digits on the Interpreter State (GH-98418)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_interp.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index c11e897..e643c7e 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -69,6 +69,11 @@ struct atexit_state { }; +struct _Py_long_state { + int max_str_digits; +}; + + /* interpreter state */ /* PyInterpreterState holds the global state for one of the runtime's @@ -164,6 +169,7 @@ struct _is { struct _Py_unicode_state unicode; struct _Py_float_state float_state; + struct _Py_long_state long_state; /* Using a cache is very effective since typically only a single slice is created and then deleted again. */ PySliceObject *slice_cache; |