def bar(): x += [3] # UnboundLocalError
0 LOAD_FAST 0 (x) 2 LOAD_CONST 1 (3) 4 INPLACE_ADD 6 STORE_FAST 0 (x) 8 LOAD_CONST 0 (None) 10 RETURN_VALUE