[issue44318] Asyncio classes missing __slots__

Andrei Kulakov report at bugs.python.org
Thu Jun 17 23:46:53 EDT 2021


Andrei Kulakov <andrei.avk at gmail.com> added the comment:

The size of an instance of Semaphore is 48, of an empty tuple is 40, of a small int is 28, of an instance of a normal class with a single slot in __slots__ is also 40, are you use 48 byte size will really be an issue for you?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44318>
_______________________________________


More information about the Python-bugs-list mailing list