From 6423f685e82168ad26df06c9701af89488d6bdec Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Sun, 28 Jul 2019 16:43:38 +0200 Subject: python: finally --- python/finally.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 python/finally.py (limited to 'python/finally.py') 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() + -- cgit v1.2.3