summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_runtime_init.h
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2022-02-28 22:15:48 (GMT)
committerGitHub <noreply@github.com>2022-02-28 22:15:48 (GMT)
commit08deed1af56bec8668c6cb4d5cfd89e393e1fe5e (patch)
tree6b556457a1065c75841b6d7d59483494590e32f1 /Include/internal/pycore_runtime_init.h
parentd5b7bba43b7d9559e9894d263ece337084dc4b8d (diff)
downloadcpython-08deed1af56bec8668c6cb4d5cfd89e393e1fe5e.zip
cpython-08deed1af56bec8668c6cb4d5cfd89e393e1fe5e.tar.gz
cpython-08deed1af56bec8668c6cb4d5cfd89e393e1fe5e.tar.bz2
bpo-46753: Add the empty tuple to the _PyRuntimeState.global_objects. (gh-31345)
https://bugs.python.org/issue46753
Diffstat (limited to 'Include/internal/pycore_runtime_init.h')
-rw-r--r--Include/internal/pycore_runtime_init.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_runtime_init.h b/Include/internal/pycore_runtime_init.h
index 8f62343..2f2bc65 100644
--- a/Include/internal/pycore_runtime_init.h
+++ b/Include/internal/pycore_runtime_init.h
@@ -964,6 +964,10 @@ extern "C" {
INIT_ID(zipimporter), \
}, \
}, \
+ \
+ .tuple_empty = { \
+ .ob_base = _PyVarObject_IMMORTAL_INIT(&PyTuple_Type, 0) \
+ }, \
}, \
}
/* End auto-generated code */