This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2008年04月08日 16:17 by ncoghlan, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg65182 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2008年04月08日 16:17 | |
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 "<stdin>", line 1, in <module> TypeError: 'weakproxy' object cannot be interpreted as an index The weakref proxy types need to be updated to delegate 2.5's new tp_index slot. |
|||
| msg65190 - (view) | Author: Alyssa Coghlan (ncoghlan) * (Python committer) | Date: 2008年04月08日 16:48 | |
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. |
|||
| msg67118 - (view) | Author: Georg Brandl (georg.brandl) * (Python committer) | Date: 2008年05月20日 08:41 | |
Fixed in r63500, together with the floor/truediv slots. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:33 | admin | set | github: 46844 |
| 2008年05月20日 08:41:08 | georg.brandl | set | status: open -> closed assignee: georg.brandl messages: + msg67118 resolution: fixed nosy: + georg.brandl |
| 2008年04月08日 16:48:33 | ncoghlan | set | keywords:
+ easy messages: + msg65190 |
| 2008年04月08日 16:46:43 | ncoghlan | set | priority: normal |
| 2008年04月08日 16:17:43 | ncoghlan | create | |