Paul McGuire wrote:

> Does set membership test for equality ("==") or identity ("is")?  

As Alex said, equality:

>>> a = 0.0
>>> b = -0.0
>>> a is b
False
>>> a == b
True
>>> set([a, b])
set([0.0])

Peter

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

Reply via email to