[Python-checkins] r59487 - python/trunk/Lib/collections.py
raymond.hettinger
python-checkins at python.org
Fri Dec 14 00:52:59 CET 2007
Author: raymond.hettinger
Date: Fri Dec 14 00:52:59 2007
New Revision: 59487
Modified:
python/trunk/Lib/collections.py
Log:
Small speedup
Modified: python/trunk/Lib/collections.py
==============================================================================
--- python/trunk/Lib/collections.py (original)
+++ python/trunk/Lib/collections.py Fri Dec 14 00:52:59 2007
@@ -2,6 +2,7 @@
from _collections import deque, defaultdict
from operator import itemgetter as _itemgetter
+from itertools import izip as _izip
from keyword import iskeyword as _iskeyword
import sys as _sys
@@ -77,7 +78,7 @@
print template
# Execute the template string in a temporary namespace
- namespace = dict(itemgetter=_itemgetter)
+ namespace = dict(itemgetter=_itemgetter, zip=_izip)
try:
exec template in namespace
except SyntaxError, e:
More information about the Python-checkins
mailing list