mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
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.
This commit is contained in:
parent
ab541bb98e
commit
ebc3457937
1 changed files with 1 additions and 1 deletions
|
|
@ -774,7 +774,7 @@ These are fine:
|
|||
... try:
|
||||
... 1//0
|
||||
... except ZeroDivisionError:
|
||||
... yield 666 # bad because *outer* try has finally
|
||||
... yield 666
|
||||
... except:
|
||||
... pass
|
||||
... finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue