``importlib/_bootstrap.py``: Reduce size of ``_List`` instances (GH-114747)

Reduce size of _List instances
This commit is contained in:
Kirill Podoprigora 2024-01-30 21:44:09 +03:00 committed by GitHub
parent a1332a99cf
commit 6de8aa31f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ def _new_module(name):
# For a list that can have a weakref to it.
class _List(list):
pass
__slots__ = ("__weakref__",)
# Copied from weakref.py with some simplifications and modifications unique to