Most Python classes use a dictionary (__dict__) to store their attributes.
Some classes use a more memory efficient mechanism for attribute storage.
More in my new screecast on __slots__: https://pym.dev/__slots__
Most Python classes use a dictionary (__dict__) to store their attributes.
Some classes use a more memory efficient mechanism for attribute storage.
More in my new screecast on __slots__: https://pym.dev/__slots__
If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.social/users/treyhunner/statuses/115493713658392066 on your instance and quote it. (Note that quoting is not supported in Mastodon.)