[issue3474] Using functools.reduce() does not stop DeprecationWarning when using -3
Brett Cannon
report at bugs.python.org
Thu Jul 31 05:40:55 CEST 2008
New submission from Brett Cannon <brett at python.org>:
It turns out that functools.reduce() is simply __builtins__.reduce().
That does not stop the DeprecationWarning from using reduce() from being
raised even though the message says to use functools.reduce()!
Easiest solution is to create a wrapper for __builtin__.reduce() that
silences the warning when called.
----------
assignee: brett.cannon
components: Library (Lib)
messages: 70484
nosy: brett.cannon
priority: critical
severity: normal
status: open
title: Using functools.reduce() does not stop DeprecationWarning when using -3
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3474>
_______________________________________
More information about the Python-bugs-list
mailing list