Message70526
On Wed, Jul 30, 2008 at 11:32 PM, Raymond Hettinger
<report@bugs.python.org> wrote:
>
> Raymond Hettinger <rhettinger@users.sourceforge.net> 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. |
|
Date |
User |
Action |
Args |
2008-07-31 17:43:59 | brett.cannon | set | recipients:
+ brett.cannon, rhettinger |
2008-07-31 17:43:58 | brett.cannon | link | issue3474 messages |
2008-07-31 17:43:57 | brett.cannon | create | |
|