diff options
author | Kirill Podoprigora <kirill.bast9@mail.ru> | 2024-01-30 18:44:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-30 18:44:09 (GMT) |
commit | 6de8aa31f39b3d8dbfba132e6649724eb07b8348 (patch) | |
tree | cfd6026bcd288a0bd39cdbc24875000f55df2b30 /Lib/importlib/_bootstrap.py | |
parent | a1332a99cf1eb9b879d4b1f28761b096b5749a0d (diff) | |
download | cpython-6de8aa31f39b3d8dbfba132e6649724eb07b8348.zip cpython-6de8aa31f39b3d8dbfba132e6649724eb07b8348.tar.gz cpython-6de8aa31f39b3d8dbfba132e6649724eb07b8348.tar.bz2 |
``importlib/_bootstrap.py``: Reduce size of ``_List`` instances (GH-114747)
Reduce size of _List instances
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r-- | Lib/importlib/_bootstrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py index d942045..6d6292f 100644 --- a/Lib/importlib/_bootstrap.py +++ b/Lib/importlib/_bootstrap.py @@ -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 |