Spencer Brown <spencer...@live.com> added the comment:
Both will function, but class B will add its slots after A's, causing there to 
be an extra unused slot in the object that you can only access by directly 
using the A.a descriptor. So all slotted inheriting dataclasses cause the 
object to use more memory than necessary.

----------
nosy: +Spencer Brown

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46382>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to