Understanding Attributes, Dicts and Slots in Python
1–3 of 3 posts
Re: Understanding Attributes, Dicts and Slots in Python
#2Nice explanation! I’d add some further reading and practical advice at the end, like using slots=True in dataclasses or attrs classes when higher performance and lower memory usage are required.
Re: Understanding Attributes, Dicts and Slots in Python
#3Nice explanation! I’d add some further reading and practical advice at the end, like using slots=True in dataclasses or attrs classes when higher performance and lower memory usage are required.
That's a great idea. I will post an update!