Skip to content Skip to sidebar Skip to footer
Showing posts with the label Slots

Python __slots__ (making And Using)

I don't really get making a class and using __slots__ can someone make it clearer? For example… Read more Python __slots__ (making And Using)

How Does __slots__ Avoid A Dictionary Lookup?

I've heard that __slots__ makes objects faster by avoiding a dictionary lookup. My confusion co… Read more How Does __slots__ Avoid A Dictionary Lookup?