Armin Rigo added the comment:

Terry: I meant exactly what I wrote, and not some unrelated examples:

    def f():
        n = 1
        class A: n = n

doesn't work, but the same two lines ("n = 1"; "class A: n = n") work if 
written at module level instead of in a function.


Python tracker <>
Python-bugs-list mailing list

Reply via email to