Annotate the unexplained assignment in exception unbinding (GH-11448)
authorChris Angelico <rosuav@gmail.com>
Tue, 21 May 2019 13:34:19 +0000 (23:34 +1000)
committerEric V. Smith <ericvsmith@users.noreply.github.com>
Tue, 21 May 2019 13:34:19 +0000 (09:34 -0400)
Python/compile.c

index b20548c777246c16fc827556540f5ebff8d3f8ca..63b2456bb3e850035ba749d142ed27b4fa727e50 100644 (file)
@@ -2931,7 +2931,7 @@ compiler_try_except(struct compiler *c, stmt_ty s)
                   try:
                       # body
                   finally:
-                      name = None
+                      name = None # in case body contains "del name"
                       del name
             */