[issue41392] SyntaxError rather than NameError

Ronald Oussoren report at bugs.python.org
Sat Jul 25 08:30:25 EDT 2020


Ronald Oussoren <ronaldoussoren at mac.com> added the comment:

The compiler cannot know if "false" is an existing name when compiling. 

One example is that the name might refer to the name of a builtin.

----------
nosy: +ronaldoussoren
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type: compile error -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41392>
_______________________________________


More information about the Python-bugs-list mailing list