[issue5964] WeakSet cmp methods
Robert Schuppenies
report at bugs.python.org
Fri May 15 05:06:54 CEST 2009
Robert Schuppenies <robert.schuppenies at gmail.com> added the comment:
I am now a bit confused about the semantics of __eq__ for WeakSets. Is a
WeakSet only equal to another WeakSet with the same elements or to any
iterable with the same elements, e.g. list? Because this is how I read
the current implementation. If it is the latter, when should a
NotImplementedError be raised? Whenever the other object is not an Iterable?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5964>
_______________________________________
More information about the Python-bugs-list
mailing list