cpython/Include
Victor Stinner e5fbe0cbd4
bpo-41631: _ast module uses again a global state (#21961)
Partially revert commit ac46eb4ad6:
"bpo-38113: Update the Python-ast.c generator to PEP384 (gh-15957)".

Using a module state per module instance is causing subtle practical
problems.

For example, the Mercurial project replaces the __import__() function
to implement lazy import, whereas Python expected that "import _ast"
always return a fully initialized _ast module.

Add _PyAST_Fini() to clear the state at exit.

The _ast module has no state (set _astmodule.m_size to 0). Remove
astmodule_traverse(), astmodule_clear() and astmodule_free()
functions.
2020-09-15 18:03:34 +02:00
..
cpython bpo-41098: Doc: Add missing deprecated directives (GH-21162) 2020-08-07 16:31:53 +09:00
internal bpo-41631: _ast module uses again a global state (#21961) 2020-09-15 18:03:34 +02:00
abstract.h
asdl.h
ast.h
bltinmodule.h
boolobject.h
bytearrayobject.h
bytesobject.h
cellobject.h
ceval.h
classobject.h
code.h
codecs.h
compile.h
complexobject.h
context.h
datetime.h
descrobject.h
dictobject.h
dynamic_annotations.h
enumobject.h
errcode.h
eval.h
exports.h
fileobject.h
fileutils.h
floatobject.h
frameobject.h
funcobject.h
genericaliasobject.h
genobject.h bpo-40941: Unify implicit and explicit state in the frame and generator objects into a single value. (GH-20803) 2020-07-17 11:44:23 +01:00
import.h
interpreteridobject.h
intrcheck.h
iterobject.h
listobject.h
longintrepr.h
longobject.h
marshal.h
memoryobject.h
methodobject.h
modsupport.h
moduleobject.h
namespaceobject.h
object.h
objimpl.h
odictobject.h
opcode.h bpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating it in 'compile.c' (GH-21714) 2020-08-04 17:30:11 +01:00
osdefs.h
osmodule.h
parser_interface.h
patchlevel.h
picklebufobject.h
py_curses.h
pyarena.h
pycapsule.h
pyctype.h
pydebug.h
pydecimal.h bpo-41324 Add a minimal decimal capsule API (#21519) 2020-08-10 16:32:21 +02:00
pydtrace.d
pydtrace.h
pyerrors.h
pyexpat.h
pyfpe.h
pyframe.h
pyhash.h
pylifecycle.h
pymacconfig.h
pymacro.h
pymath.h
pymem.h
pyport.h
pystate.h
pystrcmp.h
pystrhex.h
pystrtod.h
Python-ast.h
Python.h
pythonrun.h
pythread.h
pytime.h
rangeobject.h
setobject.h
sliceobject.h
structmember.h
structseq.h
symtable.h
sysmodule.h
token.h
traceback.h
tracemalloc.h
tupleobject.h
typeslots.h
ucnhash.h
unicodeobject.h
warnings.h
weakrefobject.h