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 rhettinger
Recipients alexandre.vassalotti, docs@python, pierreglaser, pitrou, rhettinger, serhiy.storchaka
Date 2019-02-07.22:23:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1549578236.37.0.0290751439768.issue35933@roundup.psfhosted.org>
In-reply-to
Content
Interestingly, you can also put an instance dict in slots:

>>> class A:
	__slots__ = ['x', '__dict__']
	
>>> a = A()
>>> a.x = 5
>>> a.y = 6
>>> a.__dict__
{'y': 6}
>>> a.x
5
History
Date User Action Args
2019-02-07 22:23:57rhettingersetrecipients: + rhettinger, pitrou, alexandre.vassalotti, docs@python, serhiy.storchaka, pierreglaser
2019-02-07 22:23:56rhettingersetmessageid: <1549578236.37.0.0290751439768.issue35933@roundup.psfhosted.org>
2019-02-07 22:23:56rhettingerlinkissue35933 messages
2019-02-07 22:23:56rhettingercreate