[EMAIL PROTECTED] schrieb:
> 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.

You are confusing immutable objects with singletons. Never use "is" with
strings and numbers.

Christian

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to