mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
Issue 25147: add reason for using _collections
This commit is contained in:
parent
b134a2a5ae
commit
c791507e1f
1 changed files with 1 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
import sys
|
import sys
|
||||||
from types import MappingProxyType, DynamicClassAttribute
|
from types import MappingProxyType, DynamicClassAttribute
|
||||||
|
|
||||||
|
# try _collections first to reduce startup cost
|
||||||
try:
|
try:
|
||||||
from _collections import OrderedDict
|
from _collections import OrderedDict
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue