mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #19218: Rename collections.abc to _collections_abc in order to speed up interpreter start
This commit is contained in:
parent
ad9c9bb5a9
commit
f1dc3ee16d
7 changed files with 14 additions and 6 deletions
|
@ -3,9 +3,9 @@ __all__ = ['deque', 'defaultdict', 'namedtuple', 'UserDict', 'UserList',
|
|||
|
||||
# For backwards compatibility, continue to make the collections ABCs
|
||||
# available through the collections module.
|
||||
from collections.abc import *
|
||||
import collections.abc
|
||||
__all__ += collections.abc.__all__
|
||||
from _collections_abc import *
|
||||
import _collections_abc
|
||||
__all__ += _collections_abc.__all__
|
||||
|
||||
from _collections import deque, defaultdict
|
||||
from operator import itemgetter as _itemgetter, eq as _eq
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue