⬅︎ Back to is is not the same as equal in Python
yes what you are doing was dangerous EVEN with plain 8bit data; check this:>>> a ="p"+"eter">>> b = "peter">>> a is bFalse>>> a'peter'>>> b'peter'>>>
Comment
yes what you are doing was dangerous EVEN with plain 8bit data; check this:
>>> a ="p"+"eter"
>>> b = "peter"
>>> a is b
False
>>> a
'peter'
>>> b
'peter'
>>>