"yield" is also a keyword. Spotted by Neal Norwitz.

This commit is contained in:
Jack Jansen 2002-01-24 12:36:51 +00:00
parent f9bb90e453
commit bdd6e705ae
1 changed files with 1 additions and 1 deletions

View File

@ -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: