def f():
    a = 2
b = [(a + i) for i in range(3)]
dis.dis(f.__code__.co_consts[2])
f.__code__.co_cellvars
List comprehensions: different behaviour with respect to scope in debug mode and in normal runtime