Python “hidden” gems: __slots__

Sebastian Opałczyński
Level Up Coding
Published in
4 min readAug 16, 2021

--

Python has a lot of gems! (image by author)

Intro

When I was a younger developer I often sat in front of my PC and randomly pick some python official documentation articles (I’m still doing it, but with lower frequency). This activity comes out of curiosity — what is there that I don’t know is there, because it’s often the case that you will not see some language-specific constructs in years in your day-to-day job.

--

--

Software engineer, technology enthusiast, common sense lover, serial co-founder, and a father of three.