summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/finally.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/python/finally.py b/python/finally.py
new file mode 100644
index 0000000..a6f14ab
--- /dev/null
+++ b/python/finally.py
@@ -0,0 +1,10 @@
+def f():
+ try:
+ raise Exception
+ except:
+ return
+ finally:
+ print("exit")
+
+f()
+