]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.9] bpo-41194: Convert _ast extension to PEP 489 (GH-21807)
authorVictor Stinner <vstinner@python.org>
Mon, 10 Aug 2020 13:55:54 +0000 (15:55 +0200)
committerGitHub <noreply@github.com>
Mon, 10 Aug 2020 13:55:54 +0000 (15:55 +0200)
commitd2bea2636d5f0c2b196966315790af8e79c7bf82
tree6c1bfd3409db87a03c8fc17bb454ac7ac69ec7ea
parentb0a27055320f4dfb60a24bdb3c825010fce570dc
[3.9] bpo-41194: Convert _ast extension to PEP 489 (GH-21807)

* bpo-41194: Convert _ast extension to PEP 489 (GH-21293)

Convert the _ast extension module to PEP 489 "Multiphase
initialization". Replace the global _ast state with a module state.

(cherry picked from commit b1cc6ba73a51d5cc3aeb113b5e7378fb50a0e20a)

* bpo-41204: Fix compiler warning in ast_type_init() (GH-21307)

(cherry picked from commit 1f76453173267887ed05bb3783e862cb22365ae8)
Parser/asdl_c.py
Python/Python-ast.c