比较身份时,控制台会给出其他结果

Console gives other result when comparing identities

考虑以下代码

    x=(1,2,3)
    y=(1,2,3)
    print(x is y)

当我在控制台中 运行 这段代码时,它返回 False。

当我在 Python 文件中 运行 这段代码时,它返回 True。

考虑到 Python Tutor 和其他站点,结果需要为 False。这怎么可能?这与Python在内存中存储变量的方式有关吗?

我正在使用 Python 3.8

显然这是 Python 3.8 中的问题。我将我的解释器更改为 Python 3.6,上面的代码现在返回 False,就像它应该的那样。