[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Meador Inge
Changes by Meador Inge : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4b3f1decb1af by Meador Inge in branch '2.7': Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive. http://hg.python.org/cpython/rev/4b3f1decb1af New changeset 5b88475aae96 by Meador Inge in branch '3.2': Issue #14195: Make WeakSet.__lt_

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 thanks for fixing this -- nosy: +rhettinger priority: normal -> high ___ Python tracker ___ _

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Meador Inge
Meador Inge 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:

[issue14195] WeakSet has ordering relations wrong

2012-03-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : >>> a = weakref.WeakSet() >>> a < a True >>> a > a True -- components: Library (Lib) messages: 154910 nosy: pitrou priority: normal severity: normal stage: needs patch status: open title: WeakSet has ordering relations wrong type: behavior versions: P