Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f():
- try:
- raise Exception("Oops")
- except:
- return 999
- finally:
- return None
- def g():
- try:
- raise Exception("Oops")
- except:
- return 999
- finally:
- pass
- print(f()) #None
- print(g()) #999
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement