I was playing around with Unicode identifiers and stumbled upon this:
>>> ๐, x = 1, 2
>>> ๐, x
(1, 2)
>>> ๐, f = 1, 2
>>> ๐, f
(2, 2)
What's going on here? Why does Python replace the object referenced by ๐
, but only sometimes? Where is that behavior described?
๐=1
f=2
print(๐)
a, a = 1, 2; a, a
. This has nothing to do withf
or๐
.๐ = 3; f
would suffice.