Skip to content

Commit ecd7ae7

Browse files
committed
Adjust comment for _PyCode_Fini
1 parent cd6086f commit ecd7ae7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/pylifecycle.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,8 @@ finalize_interp_types(PyInterpreterState *interp)
18331833

18341834
_PyTypes_Fini(interp);
18351835

1836+
// Call _PyCode_Fini after any code that uses tuples,
1837+
// since it sets contents of "interned" tuples to NULL.
18361838
_PyCode_Fini(interp);
18371839

18381840
// Call _PyUnicode_ClearInterned() before _PyDict_Fini() since it uses

0 commit comments

Comments
 (0)