A CPython internal question. What does g() return?
python
def g(): try: return 1 finally: return 2
a4748fa
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.