python3-in-one-pic icon indicating copy to clipboard operation
python3-in-one-pic copied to clipboard

The case sensitivity example enforces bad intuition.

Open CharString opened this issue 1 year ago • 0 comments

Names in Python are references to boxes, not variables. The is operator does not compare identity of names, it compares identity of values:

>>> a = 1
>>> A = 1
>>> print(a is not A)
False

CharString avatar Oct 03 '24 14:10 CharString