Xiang Zhang added the comment: You can't do it like this. The document explicitly states it only works inside a class definition:
"Also note that, aside from the zero argument form, super() is not limited to use inside methods. The two argument form specifies the arguments exactly and makes the appropriate references. The zero argument form only works inside a class definition, as the compiler fills in the necessary details to correctly retrieve the class being defined, as well as accessing the current instance for ordinary methods." So if treat it as an enhancement, is it reasonable Nick? ---------- nosy: +ncoghlan, xiang.zhang _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue29114> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
