[issue40360] Deprecate lib2to3 (and 2to3) for future removal

Guido van Rossum report at bugs.python.org
Sun Jul 26 18:56:43 EDT 2020


Guido van Rossum <guido at python.org> added the comment:

I guess the design space is wide open.

Does parso have to be pure Python? If not, we could generate C code like we do for CPython's parser. Now, that doesn't work for incremental parsing, but I did an alternative implementation that uses a stack machine, also in C, that's only 2x slower than the PEG parser. Maybe that could be adapted to incremental parsing (because it's a stack machine). Error recovery is still a research project (at least for me -- I'm actually reading papers :-).

----------

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


More information about the Python-bugs-list mailing list