Skip to content

[pull] master from python:master#425

Merged
pull[bot] merged 4 commits intoasm0dey:masterfrom
python:master
Nov 3, 2020
Merged

[pull] master from python:master#425
pull[bot] merged 4 commits intoasm0dey:masterfrom
python:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Nov 3, 2020

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

pablogsal and others added 4 commits November 3, 2020 00:02
Call _PyAST_Fini() on all interpreters, not only on the main
interpreter. Also, call it ealier to fix a reference leak.

Python types contain a reference to themselves in in their
PyTypeObject.tp_mro member. _PyAST_Fini() must called before the last
GC collection to destroy AST types.

_PyInterpreterState_Clear() now calls _PyAST_Fini(). It now also
calls _PyWarnings_Fini() on subinterpeters, not only on the main
interpreter.

Add an assertion in AST init_types() to ensure that the _ast module
is no longer used after _PyAST_Fini() has been called.
@pull pull bot added the ⤵️ pull label Nov 3, 2020
@pull pull bot merged commit a603c3d into asm0dey:master Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants