From e274d19c1a1c575bf5b283335e044568ce776491 Mon Sep 17 00:00:00 2001 From: Tevin Joseph K O Date: Sat, 12 Mar 2016 14:29:47 +0530 Subject: [PATCH] 'else' was used instead of 'finally" --- source/object_oriented_programming.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/object_oriented_programming.rst b/source/object_oriented_programming.rst index 3251ffc..cf65aa2 100644 --- a/source/object_oriented_programming.rst +++ b/source/object_oriented_programming.rst @@ -373,7 +373,7 @@ executed only if no exception is raised in the try-block. else: print "successfully opened the file", filename -There can be an optional `else` clause with a `try` statement, which is executed +There can be an optional `finally` clause with a `try` statement, which is executed irrespective of whether or not exception has occured. .. code-block:: python