Skip to content

It seems like one sample in "Section: Strain your brain! --> Strings can be tricky sometimes *" has been not suitable for Python 3.7.1? #120

@RocShi

Description

@RocShi

Hello, thanks for your great effort in wtfpython. In practice, the result of last sample of 2nd code segment in Strings can be tricky sometimes * is different with that of mine. In wtfpython, it's like:

>>> a, b = "wtf!", "wtf!"
>>> a is b
True

But in my development environment, it's like:

$ python3
Python 3.7.1 (v3.7.1:260ec2c36a, Oct 20 2018, 14:57:15) [MSC v.1915 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> a, b = "wtf!", "wtf!"
>>> a is b
False

My development environment is as follows.

  • windows 10 Enterprise (64-bit) based on x64 processor

  • Python 3.7.1 (64-bit)

So, is the sample mentioned above not suitable for Python 3.7.1?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions