Message190912
I didn't, but the attached script should do the trick. The code suffers badly from copy&paste editing, but more or less has the same behavior as PyObjC.
It defines a subclass of list (MyList) with an append method, and more importantly also defines 3 "proxy" classes: ProxyObject, ProxyList and ProxyMyList that are proxy types for object, list and MyList.
At the end I try to access methods on instances of a proxy objects for MyList, and finally try to access super(MyList, v).append. That only works when "append" is in the __dict__ for ProxyList (for example by uncommenting the 3 lines just above the use of super()). |
|
Date |
User |
Action |
Args |
2013-06-10 15:08:16 | ronaldoussoren | set | recipients:
+ ronaldoussoren, amaury.forgeotdarc |
2013-06-10 15:08:16 | ronaldoussoren | set | messageid: <1370876896.42.0.155961425001.issue18181@psf.upfronthosting.co.za> |
2013-06-10 15:08:16 | ronaldoussoren | link | issue18181 messages |
2013-06-10 15:08:16 | ronaldoussoren | create | |
|