[issue39069] Move ast.unparse() function to a different module

STINNER Victor report at bugs.python.org
Mon Dec 16 13:15:01 EST 2019


STINNER Victor <vstinner at python.org> added the comment:

> On the same PR, I also proposed to use import enum:

"import enum" is not the biggest enum. Creating an enum type is expensive, and so we might to do it lazily. For example, "import re" was made betweeen 20 an 30% slower than re constants were converted to enums.

----------

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


More information about the Python-bugs-list mailing list