Brett Cannon <[EMAIL PROTECTED]> added the comment:

On Wed, Jul 30, 2008 at 11:32 PM, Raymond Hettinger
<[EMAIL PROTECTED]> wrote:
>
> Raymond Hettinger <[EMAIL PROTECTED]> added the comment:
>
> Can't this be handled by 2-to-3 instead of a -3 warning?
>

Well, there is the problem of someone having a function already named
reduce() and the import. Since 2to3 can't go back and add an import,
every found use of reduce() would need to have an import inserted
somewhere. That won't work if reduce() is being used in a expression
context instead of a statement context, etc.

_______________________________________
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3474>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to