[Python-checkins] cpython: Issue 25147: add reason for using _collections
ethan.furman
python-checkins at python.org
Fri Sep 18 07:56:11 CEST 2015
https://hg.python.org/cpython/rev/c0363f849624
changeset: 98028:c0363f849624
user: Ethan Furman <ethan at stoneleaf.us>
date: Thu Sep 17 22:55:40 2015 -0700
summary:
Issue 25147: add reason for using _collections
files:
Lib/enum.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Lib/enum.py b/Lib/enum.py
--- a/Lib/enum.py
+++ b/Lib/enum.py
@@ -1,6 +1,7 @@
import sys
from types import MappingProxyType, DynamicClassAttribute
+# try _collections first to reduce startup cost
try:
from _collections import OrderedDict
except ImportError:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list