A CPython internal question. What does g() return?
python
def g(): try: return 1 finally: return 2
1a61d0a
def g(): try: return 1 finally: return 2
2, and the scarier cousin of this is returning inside finally when an unhandled exception was raised in try, because it silently swallows the exception.commit 1a61d0a