Author Spencer Brown
Recipients Spencer Brown, ariebovenberg, eric.smith, sobolevn
Date 2022-01-15.11:05:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642244734.54.0.778009148514.issue46382@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-01-15 11:05:34Spencer Brownsetrecipients: + Spencer Brown, eric.smith, sobolevn, ariebovenberg
2022-01-15 11:05:34Spencer Brownsetmessageid: <1642244734.54.0.778009148514.issue46382@roundup.psfhosted.org>
2022-01-15 11:05:34Spencer Brownlinkissue46382 messages
2022-01-15 11:05:34Spencer Browncreate