Author thautwarm
Recipients Anthony Sottile, Bachsau, barry, brett.cannon, jwilk, miss-islington, nascheme, njs, rhettinger, serhiy.storchaka, steven.daprano, thautwarm, 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, Bachsau
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