On 9/01/21 9:12 am, Chris Barker wrote:
(though I notice that if you create __slots__ in pure Python, its names show up in dict anyway -- so clearly I'm confused...)

Descriptors for the slots get added to the *class* dict.
But that's not the dict that vars() looks at.

--
Greg
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/IVGKEFTRXTSS7MHLH6G4RMJ4INM4LYZT/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to