Bug in Python set

dmitrey dmitrey.kroshko at scipy.org
Sun May 2 08:11:40 EDT 2010


Python 2.6.5 r265:79063
>>>set().update(set()) is None
True
while I expect result of update to be set.
Also, result of
set().add(None)
is None while I expect it to be set with element None (or, maybe, it
should be empty set?)

Regards, D.



More information about the Python-list mailing list