-
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
String Interning #135
Comments
I've just checked this and found that the behavior was changed in Python 3.7. $ python2.7 -c 'a, b = "wtf!", "wtf!"; print(a is b)'
True
$ python3.6 -c 'a, b = "wtf!", "wtf!"; print(a is b)'
True
$ python3.7 -c 'a, b = "wtf!", "wtf!"; print(a is b)'
False |
Yeah, there's a note regarding this in 3.0 branch (not merged to master yet), bf967b0 |
Also related: #100 |
Closing this in favor of other issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a,b = "wtf!", "wtf!"
a is b # This returns False
The text was updated successfully, but these errors were encountered: