[issue41631] _ast module: get_global_ast_state() doesn't work with Mercurial lazy import

Pablo Galindo Salgado report at bugs.python.org
Wed Aug 26 14:38:17 EDT 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

>The mod2obj/obj2mod functions, called by e.g. compile(..., PyCF_ONLY_AST), should:
* import the _ast module
* call a Python-accessible function, e.g. _ast._mod2obj


Would that impact performance considerably?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41631>
_______________________________________


More information about the Python-bugs-list mailing list