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

Add True, False, None and nonlocal as keywords in Python 3 only #201

Closed
JukkaL opened this issue Jul 8, 2013 · 2 comments
Closed

Add True, False, None and nonlocal as keywords in Python 3 only #201

JukkaL opened this issue Jul 8, 2013 · 2 comments
Labels
bug mypy got something wrong

Comments

@JukkaL
Copy link
Collaborator

JukkaL commented Jul 8, 2013

The lexer should recognize True, False, None and nonlocal as keywords in Python 3 code.

@JukkaL JukkaL added easy and removed front end labels Jul 25, 2014
@JukkaL JukkaL added the priority label Nov 8, 2014
@spkersten
Copy link
Contributor

I think that None is a keyword in Python 2 as well. Additionally, print is not a keyword anymore in Python 3.

I've added print as a Python2 specific keyword and nonlocal as a Python3 specific one in PR #504. They other three are not a trivial change in the lexer, because also the parser has to handle them differently so I did not include them.

@JukkaL JukkaL removed the priority label Mar 9, 2015
@gvanrossum
Copy link
Member

I think @ddfisher introduced this a while ago.

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

No branches or pull requests

3 participants