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

Several syntax errors not caught #461

Open
asmeurer opened this issue Aug 8, 2019 · 0 comments
Open

Several syntax errors not caught #461

asmeurer opened this issue Aug 8, 2019 · 0 comments

Comments

@asmeurer
Copy link
Contributor

asmeurer commented Aug 8, 2019

I just realized that I never opened an issue about this. After #20, several compile-time syntax errors are warned about, but not all of them. The reason is that when I was going through the CPython source to find the compile-time errors, some of them seemed too esoteric or complicated, so I didn't implement them. A noncomprehensive list of example:

  • Invalid use of global and nonlocal variables global/local syntax errors not caught #249
  • Some star expression things in Python 3.4. I don't know if pyflakes still supports 3.4, or if any of these are left in 3.5.
  • Anything relating to async/await

These probably should be split out into separate issues, but it would also be a good idea to do an audit of compile.c (or just use my original idea, which will catch every compile-time syntax error automatically).

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

No branches or pull requests

1 participant