Message175474
The patch looks okay to me.
What does inheriting from 'ref' buy you? This feels a bit strange to me: the way I think of it, the WeakMethod *has* a weakref to the underlying object, rather than *being* a weakref to the underlying object. The __repr__ also seems a bit misleading as a result:
>>> o = Object()
>>> m = o.some_method
>>> WeakMethod(m)
<weakref at 0x100665ae0; to 'Object' at 0x101115840> |
|
Date |
User |
Action |
Args |
2012-11-12 21:32:29 | mark.dickinson | set | recipients:
+ mark.dickinson, pitrou, daniel.urban, Sundance, sfeltman |
2012-11-12 21:32:29 | mark.dickinson | set | messageid: <1352755949.32.0.566864440744.issue14631@psf.upfronthosting.co.za> |
2012-11-12 21:32:29 | mark.dickinson | link | issue14631 messages |
2012-11-12 21:32:29 | mark.dickinson | create | |
|