Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pyga/awpa instead of lib2to3 #448

Closed
bwendling opened this issue Aug 23, 2017 · 8 comments
Closed

Use pyga/awpa instead of lib2to3 #448

bwendling opened this issue Aug 23, 2017 · 8 comments

Comments

@bwendling
Copy link
Member

pyga/awpa may support Python3 more fully than lib2to3. It would be good to explore this.

@ipfans
Copy link

ipfans commented Oct 30, 2017

It seems that PyPi version of awpa still missing grammar of Python 3.6. I think we still need to waiting for new version release of awap.

@bwendling
Copy link
Member Author

Do they have a timeline for that?

@pquentin
Copy link

See https://bugs.python.org/issue40360: lib2to3 is now deprecated and may not be able to fully parse Python 3.10+. CPython encourages using https://libcst.readthedocs.io/ or https://parso.readthedocs.io/

@kamahen
Copy link
Contributor

kamahen commented Apr 30, 2020

LibCST builds on parso. Comparing stars on GitHub:

https://bugs.python.org/issue40360#msg367726 and https://bugs.python.org/issue40360#msg367730

@kamahen
Copy link
Contributor

kamahen commented Jul 8, 2020

I suspect that pyga/awpa isn't the best solution (it seems to have lib2to3 underneath it).

I've written up a proposal for augmenting the stdlib ast module; this would of course require some work in yapf as well.
https://mail.python.org/archives/list/python-ideas@python.org/thread/X2HJ6I6XLIGRZDB27HRHIVQC3RXNZAY4/

@Spitfire1900
Copy link
Contributor

Thoughts on pulling in blib2to3? See #1045 (comment) for more discussion.

@Spitfire1900
Copy link
Contributor

This issue should likely be closed in favor of adopting either blib2to3 or migrating to PEP 617 – New PEG parser for CPython

@bwendling
Copy link
Member Author

Closed with 7c408b9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants