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 thautwarm
Recipients Anthony Sottile, barry, brett.cannon, jwilk, miss-islington, nascheme, njs, rhettinger, serhiy.storchaka, steven.daprano, thautwarm, user30111, xiang.zhang
Date 2019-11-18.05:31:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574055114.02.0.0890906364193.issue34850@roundup.psfhosted.org>
In-reply-to
Content
What if using identity equality on integer literals is intended?

I'm now trying to speed up the generated code via the integer interning mechanism told by https://docs.python.org/3/c-api/long.html#c.PyLong_FromLong .

I think it okay to not complain when the operand of `is` or `is not` is an integer between -5 and 256.
History
Date User Action Args
2019-11-18 05:31:54thautwarmsetrecipients: + thautwarm, barry, brett.cannon, nascheme, rhettinger, jwilk, steven.daprano, njs, serhiy.storchaka, xiang.zhang, Anthony Sottile, miss-islington, user30111
2019-11-18 05:31:54thautwarmsetmessageid: <1574055114.02.0.0890906364193.issue34850@roundup.psfhosted.org>
2019-11-18 05:31:53thautwarmlinkissue34850 messages
2019-11-18 05:31:53thautwarmcreate