[Python-3000] PEP 3113 transition plan

Jim Jewett jimjjewett at gmail.com
Wed Mar 7 16:57:56 CET 2007


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

-jJ


More information about the Python-3000 mailing list