Is this a bug?

Jack Bates tdhfwh at nottheoilrig.com
Mon Jul 15 11:50:52 EDT 2013


Hello,

Is the following code supposed to be an UnboundLocalError?
Currently it assigns the value 'bar' to the attribute baz.foo

    foo = 'bar'
    class baz:
       foo = foo



More information about the Python-list mailing list