thautwarm <yaoxiansa...@gmail.com> added the comment:

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.

----------
nosy: +thautwarm

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue34850>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to