Author vstinner
Recipients vstinner
Date 2020-09-16.10:10:24
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In September 2019, the _ast extension module was converted to PEP 384 (stable ABI): bpo-38113.

In bpo-41631, I moved the _ast module state back to a global state, rather than a regular module state, to fix multiple bugs.

The state should be made per intepreter (moved into PyInterpreterState).

Also, each interpreter should have its own _ast types (_ast.AST, _ast.Constant, etc.), rather than sharing all types.

Hopefully, in 3.9, _ast types have been converted to heap types.

To fix bpo-41631, I wanted to convert _ast.AST heap type back into a static type, to prevenet a subinterpreter to modify it, but Petr Viktorin asked me to leave it as it is:

I agree since I would like to convert all static types to heap types: bpo-40077.
Date User Action Args
2020-09-16 10:10:24vstinnersetrecipients: + vstinner
2020-09-16 10:10:24vstinnersetmessageid: <>
2020-09-16 10:10:24vstinnerlinkissue41796 messages
2020-09-16 10:10:24vstinnercreate