[issue8733] list type and UserList do not call super in __init__ and therefore, they cannot be parents in a multiple inheritence scheme
Raymond Hettinger
report at bugs.python.org
Sat Nov 21 16:41:15 EST 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
There will always be classes that don't call super() init, sometimes for efficiency and sometimes to preserve their internal invariants.
Also, __init__() isn't the only method affected. For a perfectly cooperative class, all of the methods would need to call super().
See how to handle this in the "How to Incorporate a Non-cooperative Class" section of: https://rhettinger.wordpress.com/2011/05/26/super-considered-super/
----------
nosy: +rhettinger
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue8733>
_______________________________________
More information about the Python-bugs-list
mailing list