mirror of https://github.com/python/cpython
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
|
@ -774,7 +774,7 @@ These are fine:
|
||||||
... try:
|
... try:
|
||||||
... 1//0
|
... 1//0
|
||||||
... except ZeroDivisionError:
|
... except ZeroDivisionError:
|
||||||
... yield 666 # bad because *outer* try has finally
|
... yield 666
|
||||||
... except:
|
... except:
|
||||||
... pass
|
... pass
|
||||||
... finally:
|
... finally:
|
||||||
|
|
Loading…
Reference in New Issue