[issue3474] Using functools.reduce() does not stop DeprecationWarning when using -3

Brett Cannon report at bugs.python.org
Fri Aug 1 01:33:01 CEST 2008


Brett Cannon <brett at python.org> added the comment:

On Thu, Jul 31, 2008 at 11:56 AM, Benjamin Peterson
<report at bugs.python.org> wrote:
>
> Benjamin Peterson <musiccomposition at gmail.com> added the comment:
>
> Alternatively, you could move reduce to functools and have the builtin
> module issue a warning and call it.
>

That's what 3.0 did; created _functools and that holds the original
implementation from __builtins__. But that is a lot more work. =)

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3474>
_______________________________________


More information about the Python-bugs-list mailing list