Skip to content

Commit ad098b6

Browse files
Rosuavericvsmith
authored andcommitted
Annotate the unexplained assignment in exception unbinding (GH-11448)
1 parent 4fb1502 commit ad098b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2931,7 +2931,7 @@ compiler_try_except(struct compiler *c, stmt_ty s)
29312931
try:
29322932
# body
29332933
finally:
2934-
name = None
2934+
name = None # in case body contains "del name"
29352935
del name
29362936
*/
29372937

0 commit comments

Comments
 (0)