]> granicus.if.org Git - python/commitdiff
"yield" is also a keyword. Spotted by Neal Norwitz.
authorJack Jansen <jack.jansen@cwi.nl>
Thu, 24 Jan 2002 12:36:51 +0000 (12:36 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Thu, 24 Jan 2002 12:36:51 +0000 (12:36 +0000)
Mac/scripts/gensuitemodule.py

index db440cb9a7cc77d62ef611ad1cdedf917ba77cb2..04cd7c9c58a0f4f9b4de22474ba04d3c9202c22e 100644 (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: