-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
Comments
It seems new in Python3.7 >>> # 3.7
>>> a, b = "wtf!", "wtf!"
>>> a is b
False
>>> a, b = "wtf", "wtf"
>>> a is b # Still works
True
>>> # 3.6
>>> a, b = "wtf!", "wtf!" # or a, b = "wtf", "wtf"
>>> a is b
True I don't know why there's a change, but there's a problem, for sure :) Edit : From what I understand, it might be due to one of these two PEPs : 538 & 540 |
@Ricocotam I have read PEP 538 and PEP 540, maybe you are right. |
I don't know how it would affect this, but it's the only thing I can see from Python 3.7 change logs that could modify the behavior |
Hey @RocShi thanks for highlighting this. I'm digging in deeper to find out what exactly caused this behavior change, and will update the example in the next release :) |
This is similar to issue encountered in "is is not what it is" example. So closing this in favor of #100 , let's continue the discussion there :) |
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:
But in my development environment, it's like:
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?
The text was updated successfully, but these errors were encountered: