aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python/pylifecycle.c
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.com>2024-10-27 10:52:33 +0300
committershadchin <shadchin@yandex-team.com>2024-10-27 11:03:47 +0300
commit1529383373617c6d14ad4972afdc46a5eb35f954 (patch)
tree229b7647fafadd4ee4b93d20e606c534ad697365 /contrib/tools/python3/Python/pylifecycle.c
parent41d598c624442bf6918407466dac3316b8277347 (diff)
downloadydb-1529383373617c6d14ad4972afdc46a5eb35f954.tar.gz
Update Python 3 to 3.12.7
commit_hash:052a122399d67f1ea5dfbc5f6457e3e06200becf
Diffstat (limited to 'contrib/tools/python3/Python/pylifecycle.c')
-rw-r--r--contrib/tools/python3/Python/pylifecycle.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/tools/python3/Python/pylifecycle.c b/contrib/tools/python3/Python/pylifecycle.c
index 2c36527a87..6d580c6d48 100644
--- a/contrib/tools/python3/Python/pylifecycle.c
+++ b/contrib/tools/python3/Python/pylifecycle.c
@@ -839,6 +839,13 @@ pycore_interp_init(PyThreadState *tstate)
return _PyStatus_ERR("failed to initialize deep-frozen modules");
}
+ // Per-interpreter interned string dict is created after deep-frozen
+ // modules have interned the global strings.
+ status = _PyUnicode_InitInternDict(interp);
+ if (_PyStatus_EXCEPTION(status)) {
+ return status;
+ }
+
status = pycore_init_types(interp);
if (_PyStatus_EXCEPTION(status)) {
goto done;