diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-22 23:06:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 23:06:56 (GMT) |
commit | 12f4ac3bc848244242d6b8a7ee158b985fd64744 (patch) | |
tree | 97646cd4908ef2ac6fd9f3b51d06a180603d3118 /Include/internal/pycore_symtable.h | |
parent | 1ded8ed8e817b8f9dae1a0ef92d97983afbc844e (diff) | |
download | cpython-12f4ac3bc848244242d6b8a7ee158b985fd64744.zip cpython-12f4ac3bc848244242d6b8a7ee158b985fd64744.tar.gz cpython-12f4ac3bc848244242d6b8a7ee158b985fd64744.tar.bz2 |
bpo-46417: Clear symtable identifiers at exit (GH-30809)
Add _PySymtable_Fini() function, called by finalize_interp_clear().
Update test_cmd_line.test_showrefcount() to tolerate negative
reference count.
Diffstat (limited to 'Include/internal/pycore_symtable.h')
-rw-r--r-- | Include/internal/pycore_symtable.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_symtable.h b/Include/internal/pycore_symtable.h index 28935f4..4ecfab5 100644 --- a/Include/internal/pycore_symtable.h +++ b/Include/internal/pycore_symtable.h @@ -128,6 +128,8 @@ extern struct symtable* _Py_SymtableStringObjectFlags( int start, PyCompilerFlags *flags); +extern void _PySymtable_Fini(void); + #ifdef __cplusplus } #endif |