mirror of https://github.com/python/cpython.git
"yield" is also a keyword. Spotted by Neal Norwitz.
This commit is contained in:
parent
f9bb90e453
commit
bdd6e705ae
|
@ -820,7 +820,7 @@ def compiledataflags(flags):
|
|||
illegal_ids = ["and", "elif", "global", "or", "assert", "else", "if", "pass",
|
||||
"break", "except", "import", "print", "class", "exec", "in", "raise",
|
||||
"continue", "finally", "is", "return", "def", "for", "lambda", "try",
|
||||
"del", "from", "not", "while"]
|
||||
"del", "from", "not", "while", "yield"]
|
||||
|
||||
def identify(str):
|
||||
"""Turn any string into an identifier:
|
||||
|
|
Loading…
Reference in New Issue