Slots, slots, slots, everybody: an exploration of __slots__ on Nov. 19, 2017 at 2:45 p.m. in R-M120

Python's backbone is its dictionaries but, in some cases, these dictionary instances that objects use to store its attributes can take up too much memory. Luckily Python's fantastic data model provides a way to solve this by using tuples to store an object's instances variables: __slots__.


Douglas Anderson

My name is Douglas Anderson, and Python was my first and remains my favourite programming language. I was born and raised in Toronto, where I am lucky enough to be a developer at Wave. When I am not in front of a computer, I canoe camp in the summers and curl in the winters. My ubiquitous username is @hockeybuggy.