[issue14195] WeakSet has ordering relations wrong

Meador Inge report at bugs.python.org
Mon Mar 5 01:45:11 CET 2012


Meador Inge <meadori at gmail.com> added the comment:

Ouch, WeakSet.__lt__ and WeakSet.__gt__ are defined in terms of set.issubset and set.issuperset, respectively.  set.issubset and set.issuperset are *not* proper subset and superset operations, thus the error.  The attached patch fixes this.

----------
keywords: +patch
nosy: +meador.inge
Added file: http://bugs.python.org/file24731/issue14195-v1.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14195>
_______________________________________


More information about the Python-bugs-list mailing list