12.01.21 03:21, Larry Hastings пише:
I forgot about __slots__! Yup, it's optional, and you can even delete it, though after the class is defined I'm not sure how much difference that makes.
It affects pickling if __slotnames__ is not set yet. The latter is set when you pickle or copy an instance the first time.