[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-25 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-10 Thread R. David Murray
R. David Murray added the comment: I don't think you can successfully use the no-argument version of super in this context. The no-argument form depends on compile-time magic, and you are mucking about with what object is what during the compilation phase. But I'm no expert on how super works

[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-10 Thread Jérémie Detrey
Changes by Jérémie Detrey : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue20581] Incorrect behaviour of super() in a metaclass-created subclass

2014-02-10 Thread Jérémie Detrey
New submission from Jérémie Detrey: Dear all, I've been noticing a strange (and probably incorrect) behaviour of the super() function when using a metaclass in order to automatically replace a class declaration by a subclass of itself. In the attached test case, the function `wrap' is used to