mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
`importlib/_bootstrap.py
: Reduce size of
_List
` instances (GH-114747)
Reduce size of _List instances
This commit is contained in:
parent
a1332a99cf
commit
6de8aa31f3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue