mirror of https://github.com/python/cpython
``importlib/_bootstrap.py``: Reduce size of ``_List`` instances (GH-114747)
Reduce size of _List instances
This commit is contained in:
parent
a1332a99cf
commit
6de8aa31f3
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue