> > Don't we need to do all of this in the _ast module, already?
> > We already have an AST composed of Python objects


We have AST of Python objects, but the python versions are not used
internally, especially in the parser, where they are created. The parser
and the compiler
currently use exclusively the C versions of the nodes. Changing the parser
to use Python versions and especially not to use the arena allocator can
complicate
the parser substantially, and destroying the resulting tree can be
expensive (as destroying
a deep tree composed of Python objects currently is).

Cheers from cloudy London,
Pablo
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/Z3YSR5VDDVEEZZUND36VFXPS7W3SIAQW/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to