[Python-checkins] r57574 - python/trunk/Lib/functools.py

guido.van.rossum python-checkins at python.org
Mon Aug 27 22:51:01 CEST 2007


Author: guido.van.rossum
Date: Mon Aug 27 22:51:00 2007
New Revision: 57574

Modified:
   python/trunk/Lib/functools.py
Log:
Patch # 1739906 by Christian Heimes -- add reduce to functools (importing
it from __builtin__).


Modified: python/trunk/Lib/functools.py
==============================================================================
--- python/trunk/Lib/functools.py	(original)
+++ python/trunk/Lib/functools.py	Mon Aug 27 22:51:00 2007
@@ -8,6 +8,7 @@
 # See C source code for _functools credits/copyright
 
 from _functools import partial
+from __builtin__ import reduce
 
 # update_wrapper() and wraps() are tools to help write
 # wrapper functions that can handle naive introspection


More information about the Python-checkins mailing list