[New-bugs-announce] [issue34208] Change in 3.7 expression evaluation?

Dave Opstad report at bugs.python.org
Tue Jul 24 10:21:42 EDT 2018


New submission from Dave Opstad <dave.opstad at monotypeimaging.com>:

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 from 3.6 to 3.7.

----------
components: Interpreter Core
messages: 322304
nosy: opstad
priority: normal
severity: normal
status: open
title: Change in 3.7 expression evaluation?
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34208>
_______________________________________


More information about the New-bugs-announce mailing list