[issue9658] weakref.proxy unequal to its referent in 2.x

2010-08-21 Thread Georg Brandl
Georg Brandl added the comment: Duplicate of #1170766 -- the lack of tp_richcompare support is reported among other missing slots there. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> weakref.proxy incorrect behaviour __

[issue9658] weakref.proxy unequal to its referent in 2.x

2010-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is definitely not a critical fix for 2.6 ;-) The weakref.proxy doc says nothing about comparisons: "weakref.proxy(object[, callback]) Return a proxy to object which uses a weak reference. This supports use of the proxy in most contexts instead of requir

[issue9658] weakref.proxy unequal to its referent in 2.x

2010-08-21 Thread Mark Dickinson
New submission from Mark Dickinson : Nicholas Cole noted on python-list that the behaviour of weakref.proxy with respect to equality changed between 2.x and 3.x: Python 2.7 (r27:82500, Aug 15 2010, 14:21:15) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright", "credits" or