[issue43151] is with literals in 3.8 release

Dennis Sweeney report at bugs.python.org
Sun Feb 7 03:41:14 EST 2021


Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:

I think the strangeness is happening because sometimes, the warning is printed to stderr, while other times, IDLE's parser notices the "is <literal>" anti-pattern and raises a SyntaxError.

See the attached screenshot for the IDLE output versus the console output for a recent 3.10 build.

----------
Added file: https://bugs.python.org/file49796/idle_stderr.jpg

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


More information about the Python-bugs-list mailing list