Hi!

When I create control flow graph I have to visit finally clause twice.
This is required because of different outputs should be generated for
success and exception case:

try:
    a = might_raise()
finally:
    pass # 'a' might be uninitialized here
print(a)  # and definitely defined here

So after tracking both cases I have to merge states back because same
code is generated for each.

Maybe it's a good idea to split success/exception case by copying it
at PostParse transform?

-- 
vitja.
_______________________________________________
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to