-
Notifications
You must be signed in to change notification settings - Fork 896
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
Python 3.8 support #772
Comments
I've created https://bugs.python.org/issue38551 |
https://bugs.python.org/issue36541 contains a proposed PR to bring lib2to3 up-to-date. |
Has support for python 3.8 syntax been added yet? I tried cloning the repo today and running on a file with the walrus operator, and got a |
I just bumped into this as well. |
This appears to solve the problem: https://bugs.python.org/issue36541 Also, Python 3.9 will add a positional-only grammar change: https://www.python.org/dev/peps/pep-0570/ |
Which grammar change would that be? I couldn't find it in the PEP regarding current grammar for 3.8. Thanks! |
It works with Python 3.8.3rc1 Edit: only the walrus operator |
Any update on this issue? lib2to3 is deprecated anyhow and YAPF is now unusable in newer projects... |
@gwelymernans - want to have a chat about this? I might be persuaded to figure out what's needed and maybe even implement it (step 1: figure out which of the alternatives to lib2to3 is likely to be the best). The big question: how popular is yapf vs black? I wouldn't want to put in a lot of effort if it turns out that the world has decided on the one-size-fits-all approach. |
How important is to still support Python2, which is deprecated, vs support Python3.8+? Isn't it easier to just drop support for v2? I know a ton of people is going to hate me, but its probably easier to just fork the project to support v2 and simply remove its support here. |
dropping py2 sounds great. seems like a good excuse to jump the version series too. |
Let's see if there's any discussion on this proposal (linked from item #448) for replacing lib2to3 with an augmented stdlib ast module: |
python/cpython#23759 should fix lib2to3 for the remaining positional only argument pep-570 syntax omission; that'll take a while to trickle down to various people's CPython installs. |
Closed with 7c408b9. |
Add support for python 3.8 new syntax changes:
The text was updated successfully, but these errors were encountered: