[Python-3000] PEP 3113 transition plan
Collin Winter
collinw at gmail.com
Wed Mar 7 17:05:10 CET 2007
On 3/7/07, Jim Jewett <jimjjewett at gmail.com> wrote:
> On Tue, 6 Mar 2007, Collin Winter wrote:
>
> > I can give you warnings on the following items,
>
> > - global assignments to "next".
> > - global definitions of a "next" function.
> > - global imports of anything named "next".
> > - assignments to "__builtin__.next".
>
> How hard would it be to warn about any assignment to next, even in
> nested functions?
>
> def f():
> def next():
> def g():
> next=47
Not hard at all. It's actually easier than warning about module-level
assignments.
Collin Winter
More information about the Python-3000
mailing list