[issue45464] TypeError when inheriting from both OSError and AttributeError
Christian Heimes
report at bugs.python.org
Thu Oct 14 11:26:20 EDT 2021
Christian Heimes <lists at cheimes.de> added the comment:
You are correct. To be more precise, it's caused by GH-16856. The commit introduced PyAttributeErrorObject struct. Since AttributeError and OSError now have an incompatible memory layout, it is no longer possible to create a subclass that has AttributeError and OSError as parent classes.
----------
keywords: +3.10regression
nosy: +christian.heimes
versions: +Python 3.11
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45464>
_______________________________________
More information about the Python-bugs-list
mailing list