Message336102
A slotted class will have a dict also when it inherits it from a non-slotted class. This is why the base class of slotted class should have slots if you do not want an instance dict.
__getstate__ and __setstate__ for slotted classes are described in PEP 307. Unfortunately this was not copied to the module documentation. |
|
Date |
User |
Action |
Args |
2019-02-20 15:31:31 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, pitrou, alexandre.vassalotti, docs@python, pierreglaser |
2019-02-20 15:31:31 | serhiy.storchaka | set | messageid: <1550676691.85.0.839457025477.issue35933@roundup.psfhosted.org> |
2019-02-20 15:31:31 | serhiy.storchaka | link | issue35933 messages |
2019-02-20 15:31:31 | serhiy.storchaka | create | |
|