The 'is' identity operator checking immutable values caution
castironpi at gmail.com
castironpi at gmail.com
Tue May 13 06:26:11 EDT 2008
On May 13, 5:10 am, wxPytho... at gmail.com wrote:
> 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?
Ooo. Timing. Good one. <joins rip on 3.0>
Writer's other wanderings bring Microsoft Research. Who talks to that
on a daily basis?
More information about the Python-list
mailing list