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 ncoghlan
Recipients Omer.Katz, alex, carljm, eric.araujo, madison.may, ncoghlan, pitrou, pydanny, r.david.murray, rhettinger, serhiy.storchaka, vstinner
Date 2016-11-12.12:35:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478954108.34.0.087513143068.issue21145@psf.upfronthosting.co.za>
In-reply-to
Content
Having just said that I don't see much use for lazily initialized slots, it does occur to me that __weakref__ is essentially such a slot, and __dict__ itself could usefully be such a slot for types where instances mostly have a fixed set of attributes, but still allow for arbitrary additional attributes at runtime.

However, I do think any such proposal should be considered as its own issue, rather than being treated as part of this one - the assumed absence of the instance dict creates too many differences in the design trade-offs involved and the potential use cases.
History
Date User Action Args
2016-11-12 12:35:08ncoghlansetrecipients: + ncoghlan, rhettinger, pitrou, vstinner, carljm, pydanny, eric.araujo, alex, r.david.murray, serhiy.storchaka, madison.may, Omer.Katz
2016-11-12 12:35:08ncoghlansetmessageid: <1478954108.34.0.087513143068.issue21145@psf.upfronthosting.co.za>
2016-11-12 12:35:08ncoghlanlinkissue21145 messages
2016-11-12 12:35:07ncoghlancreate