The fun thing is that you can't add
__slots__
to an already-defined class, so in order to auto-generate slots, the decorator chucks the class you've defined in the trash can and dynamically makes a new one just like it that has the specified slots
github.com/python/cpython/blob/…