diff options
author | Victor Stinner <vstinner@python.org> | 2022-02-25 15:19:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-25 15:19:30 (GMT) |
commit | f780d9690f1a009a56ac0c653ec9608e6b2aeff4 (patch) | |
tree | c79cf96660edaa02a5aede8e9d5e278822454072 /Python | |
parent | 8f2a337a80a283c66e1a4252839792fa229d2763 (diff) | |
download | cpython-f780d9690f1a009a56ac0c653ec9608e6b2aeff4.zip cpython-f780d9690f1a009a56ac0c653ec9608e6b2aeff4.tar.gz cpython-f780d9690f1a009a56ac0c653ec9608e6b2aeff4.tar.bz2 |
bpo-45316: Move _PyArg_Fini() to internal C API (GH-31580)
Move the private unexported _PyArg_Fini() function to the internal C
API: to the pycore_pylifecycle.h header file.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/getargs.c | 1 | ||||
-rw-r--r-- | Python/pylifecycle.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Python/getargs.c b/Python/getargs.c index 3fab3b5..a2ea4d7 100644 --- a/Python/getargs.c +++ b/Python/getargs.c @@ -3,6 +3,7 @@ #include "Python.h" #include "pycore_tuple.h" // _PyTuple_ITEMS() +#include "pycore_pylifecycle.h" // _PyArg_Fini #include <ctype.h> #include <float.h> diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 9dd769a..a671bca 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -829,7 +829,7 @@ pycore_interp_init(PyThreadState *tstate) // Intern strings in deep-frozen modules first so that others // can use it instead of creating a heap allocated string. _Py_Deepfreeze_Init(); - + status = pycore_init_types(interp); if (_PyStatus_EXCEPTION(status)) { goto done; |