Ronald Oussoren added the comment:

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()).

----------
Added file: http://bugs.python.org/file30528/supers.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to