[issue2592] weakref.proxy fails to delegate tp_index slot

2008-05-20 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Fixed in r63500, together with the floor/truediv slots. -- assignee: -> georg.brandl nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]>

[issue2592] weakref.proxy fails to delegate tp_index slot

2008-04-08 Thread Nick Coghlan
Nick Coghlan <[EMAIL PROTECTED]> added the comment: Marking as easy - it should be possible to just look at what the code in Objects\weakref.c is already doing for slots like tp_len and tp_int and do the same thing for tp_index. -- keywords: +easy __ Trac

[issue2592] weakref.proxy fails to delegate tp_index slot

2008-04-08 Thread Nick Coghlan
Changes by Nick Coghlan <[EMAIL PROTECTED]>: -- priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubs

[issue2592] weakref.proxy fails to delegate tp_index slot

2008-04-08 Thread Nick Coghlan
New submission from Nick Coghlan <[EMAIL PROTECTED]>: >From the discussion of issue 643841: >>> class Demo: ... def __index__(self): ... return 1 ... >>> a = Demo() >>> b = weakref.proxy(a) >>> operator.index(a) 1 >>> operator.index(b) Traceback (most recent call last): File "", line 1,