You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2007-08-27.20:51:14.033>created_at=<Date2007-06-19.19:10:46.000>labels= ['library']
title='Add reduce to functools in 2.6'updated_at=<Date2007-08-27.20:51:14.031>user='https://github.com/tiran'
I'm proposing to add reduce to functools to make code forward compatible with 3.0 code. Since 2to3 has no fixer for reduce it's an easy way to make code run under 2.6 and 3.0 w/o a try/except ImportError block.
--- Lib/functools.py (revision 56041)+++ Lib/functools.py (working copy)@@ -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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: