"John Salerno" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Is there a way to assign multiple variables to the same value, but so
> that an identity test still evaluates to False?

Make sure the value is not a singleton.
Assign them one at a time.
>>> w=1000
>>> x=1000
>>> w==x
True
>>> w is x
False
>>> w=2
>>> x=2
>>> w==x
True
>>> w is x
True

Hope that helps,
Alan Isaac


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

Reply via email to