diff options
| author | Patrick Simianer <pks@pks.rocks> | 2019-07-28 16:43:38 +0200 | 
|---|---|---|
| committer | Patrick Simianer <pks@pks.rocks> | 2019-07-28 16:43:38 +0200 | 
| commit | 6423f685e82168ad26df06c9701af89488d6bdec (patch) | |
| tree | 61dfc9a5f75b3b461235577c46d0a39837aefb47 | |
| parent | 847b438603127dd7213cef471bdfe4c1671d8524 (diff) | |
python: finally
| -rw-r--r-- | python/finally.py | 10 | 
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() + | 
