Message134776
I think it is reasonable to restrict the self argument of method descriptors and slot wrapper descriptors to real instances of the type. The called method can't cope with the value anyway (in the general case). Alternative Python implementations like Jython and PyPy already enforce this.
Attached is a patch against default branch that enforces this. |
|
Date |
User |
Action |
Args |
2011-04-29 16:01:11 | Trundle | set | recipients:
+ Trundle, belopolsky, vstinner, eric.araujo, flox, meador.inge, daniel.urban |
2011-04-29 16:01:11 | Trundle | set | messageid: <1304092871.56.0.959871727461.issue9756@psf.upfronthosting.co.za> |
2011-04-29 16:01:10 | Trundle | link | issue9756 messages |
2011-04-29 16:01:10 | Trundle | create | |
|