[issue45531] field "mro" behaves strangely in dataclass

Serhiy Storchaka report at bugs.python.org
Sat Oct 23 03:20:55 EDT 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Would not be more correct to look at cls.__dict__[fieldname]?

BTW, mro() cannot be builtin, because you should be able to override it in some classes.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45531>
_______________________________________


More information about the Python-bugs-list mailing list