Eryk Sun added the comment:
Please refrain from using the issue tracker to satisfy your curiosity. This is
a question about compiler optimizations that should be asked on python-list, or
maybe python-dev.
You can use the dis module to get a superficial answer in terms of the
constants in t
New submission from Dave Opstad :
In 3.6 I get this:
>>> x = (100 * 20)
>>> x is 2000
False
>>> (100 * 20) is 2000
False
But in 3.7, I get this:
>>> x = (100 * 20)
>>> x is 2000
False
>>> (100 * 20) is 2000
True
This isn't necessarily a problem, but I'm curious why this behavior changed
fro