osr_maybe_undefined2.py 266 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 # expected: fail # Regression test to make sure we can do an OSR if one of the live variables # is potentially-undefined. def f(x): if x % 2: y = x xrange(0) for i in xrange(1000000): xrange(0) print y xrange(0) f(11) f(10)