[issue44318] Asyncio classes missing __slots__
Serhiy Storchaka
report at bugs.python.org
Sat Jun 5 11:15:26 EDT 2021
Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:
What is the problem with this?
Setting __slots__ is needed if we want to save memory for creating a lot of instances. It can also be used for preventing adding arbitrary attributes and/or making weak references. Setting __slots__ in base class is required if you want to get a benefit of setting __slots__ in any of subclasses.
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44318>
_______________________________________
More information about the Python-bugs-list
mailing list