Dennis Sweeney <sweeney.dennis...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43151>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to