aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/pylifecycle.c
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-10-19 14:27:46 -0600
committerGitHub <noreply@github.com>2022-10-19 13:27:46 -0700
commit9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf (patch)
tree16f0ebdbd2b3c82e8c84af9a94e13b0e2fb1ba5d /Python/pylifecycle.c
parent52fcba651288ac1c0f9b1fb71379f1dad54ee1da (diff)
downloadcpython-9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf.tar.gz
cpython-9c8dde0fa5309ae9f83a4faa07f062fcd84df4cf.zip
gh-98417: Store int_max_str_digits on the Interpreter State (GH-98418)
Diffstat (limited to 'Python/pylifecycle.c')
-rw-r--r--Python/pylifecycle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c
index c550f13bc14..4195a9dbca8 100644
--- a/Python/pylifecycle.c
+++ b/Python/pylifecycle.c
@@ -480,6 +480,8 @@ interpreter_update_config(PyThreadState *tstate, int only_update_path_config)
}
}
+ tstate->interp->long_state.max_str_digits = config->int_max_str_digits;
+
// Update the sys module for the new configuration
if (_PySys_UpdateConfig(tstate) < 0) {
return -1;