Message126391
I think this is a duplicate of issue #9756: `methoddescr_call()` checks whether the given argument is acceptable as "self" argument and does so using `PyObject_IsInstance()`. As the class in the given code returns the type of the proxied object for the `__class__` attribute, that check will return true.
As a quick fix, the attached patch (against release27-maint branch) will raise a TypeError as expected by the OP, but the real issue is much broader. |
|
Date |
User |
Action |
Args |
2011-01-17 02:50:18 | Trundle | set | recipients:
+ Trundle, DasIch |
2011-01-17 02:50:18 | Trundle | set | messageid: <1295232618.79.0.667282638529.issue10922@psf.upfronthosting.co.za> |
2011-01-17 02:50:11 | Trundle | link | issue10922 messages |
2011-01-17 02:50:11 | Trundle | create | |
|