From b0f89cb4311b696f875e58f14258ce315be09bce Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 3 Oct 2022 13:55:45 -0700 Subject: gh-96512: Move int_max_str_digits setting to PyConfig (#96944) It had to live as a global outside of PyConfig for stable ABI reasons in the pre-3.12 backports. This removes the `_Py_global_config_int_max_str_digits` and gets rid of the equivalent field in the internal `struct _is PyInterpreterState` as code can just use the existing nested config struct within that. Adds tests to verify unique settings and configs in subinterpreters. --- Include/cpython/initconfig.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Include/cpython') diff --git a/Include/cpython/initconfig.h b/Include/cpython/initconfig.h index c6057a4c3e..c22c8d52b4 100644 --- a/Include/cpython/initconfig.h +++ b/Include/cpython/initconfig.h @@ -178,6 +178,7 @@ typedef struct PyConfig { wchar_t *check_hash_pycs_mode; int use_frozen_modules; int safe_path; + int int_max_str_digits; /* --- Path configuration inputs ------------ */ int pathconfig_warnings; -- cgit v1.2.1