On 3/7/07, Jim Jewett <[EMAIL PROTECTED]> 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
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to