This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients alexandre.vassalotti, docs@python, pierreglaser, pitrou, rhettinger, serhiy.storchaka
Date 2019-02-20.15:31:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550676691.85.0.839457025477.issue35933@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2019-02-20 15:31:31serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, pitrou, alexandre.vassalotti, docs@python, pierreglaser
2019-02-20 15:31:31serhiy.storchakasetmessageid: <1550676691.85.0.839457025477.issue35933@roundup.psfhosted.org>
2019-02-20 15:31:31serhiy.storchakalinkissue35933 messages
2019-02-20 15:31:31serhiy.storchakacreate