You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unicode compared using "is" results in abnormal behavior #55982
The fact that "is" works in this way here is just an implementation detail. If you want to compare strings use ==, "is" is used to verify if two variables refer to the same object or not.
>>> x =100
>>> x is100
True
>>> x =1000
>>> x is1000
False
Activity
shadyabhi commentedon Apr 5, 2011
ezio-melotti commentedon Apr 5, 2011
The fact that "is" works in this way here is just an implementation detail. If you want to compare strings use ==, "is" is used to verify if two variables refer to the same object or not.
gh-155981: Store refleak deltas in arrays (gh-55982)
pythongh-155981: Store refleak deltas in arrays (pythongh-55982)
[3.15] Backport regrtest changes from the main branch (#163045)
[3.14] Backport regrtest changes from the main branch (#163045) (#163056