The 'is' identity operator checking immutable values caution

wxPythoner at gmail.com wxPythoner at gmail.com
Tue May 13 06:10:13 EDT 2008


We have to avoid the use of the 'is' identity operator with basic,
immutable values such as numbers and strings. The result is
unpredictable because of the way Python handles these objects
internally.

How is with this issue in Python 3.0? Is it fixed? Does Python handle
this things properly now?



More information about the Python-list mailing list