On Tue, Dec 14, 2021 at 06:48:57PM -0800, Paul Bryan wrote: > Interesting. Some apparent downsides: > > - doesn't apply to class attributes
There is that. > - objects with `__slots__` can't dynamically add attributes Just give it a `__dict__` slot: __slots__ = {'__dict__': None} and now it can. -- Steve _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/YG2CHX6JBCGLGE2NXAZYEJO57T7MV65R/ Code of Conduct: http://python.org/psf/codeofconduct/