This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Dennis Sweeney
Recipients Dennis Sweeney, garylitvin, rhettinger, steven.daprano
Date 2021-02-07.08:41:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2021-02-07 08:41:14Dennis Sweeneysetrecipients: + Dennis Sweeney, rhettinger, steven.daprano, garylitvin
2021-02-07 08:41:14Dennis Sweeneysetmessageid: <>
2021-02-07 08:41:14Dennis Sweeneylinkissue43151 messages
2021-02-07 08:41:14Dennis Sweeneycreate