Message410641
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. |
|
Date |
User |
Action |
Args |
2022-01-15 11:05:34 | Spencer Brown | set | recipients:
+ Spencer Brown, eric.smith, sobolevn, ariebovenberg |
2022-01-15 11:05:34 | Spencer Brown | set | messageid: <1642244734.54.0.778009148514.issue46382@roundup.psfhosted.org> |
2022-01-15 11:05:34 | Spencer Brown | link | issue46382 messages |
2022-01-15 11:05:34 | Spencer Brown | create | |
|