Oct-05-2018, 01:54 PM
Hi,
There are two constructs that Python offers on exceptions. One is try-except-finally and the other is try-finally.
I am trying to understand in which situations do we use try-finally? Since using try-finally we cannot catch any exceptions then why does Python provide this construct, when we can use the try-except-finally.
Thanks.
There are two constructs that Python offers on exceptions. One is try-except-finally and the other is try-finally.
I am trying to understand in which situations do we use try-finally? Since using try-finally we cannot catch any exceptions then why does Python provide this construct, when we can use the try-except-finally.
Thanks.