w_uninitialized_generators.pyx 241 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 # cython: warn.maybe_uninitialized=True # mode: error # tag: werror def unbound_inside_generator(*args): for i in args: yield x x = i + i _ERRORS = """ 7:15: local variable 'x' might be referenced before assignment """