Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ebc3457

Browse files
committed
Revert previous checkin:
According to Jeremy, the comment only made sense when the yield was disallowed. Now it's testing that the yield is allowed, so it's not bad and the outer finally is irrelevant.
1 parent ab541bb commit ebc3457

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@
774774
... try:
775775
... 1//0
776776
... except ZeroDivisionError:
777-
... yield 666 # bad because *outer* try has finally
777+
... yield 666
778778
... except:
779779
... pass
780780
... finally:

0 commit comments

Comments
 (0)