[issue44273] Assigning to Ellipsis should be the same as assigning to __debug__

Pablo Galindo Salgado report at bugs.python.org
Mon May 31 16:31:11 EDT 2021


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

Also, another problem is that "cannot assign to __debug__" is actually a compiler error, while "cannot assign to Ellipsis here. Maybe you meant '==' instead of '='?" is a parser error. This is because "__debug__" is tokenized as NAME while '...' is tokenized as ELLIPSIS (it's own token).

----------

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


More information about the Python-bugs-list mailing list