Message232084
FIlipe, in case you hadn't noticed, the reason for the error in the other issue is that the generator was closed when it got garbage collected, and it ignored the close (executed a yield after the close). Thus the error message there is accurate and expected, just as (as Guido said) the behavior here is consistent with the combined semantics of generators and try/finally.
Do you want to suggest an improvement to the docs? It may be that we'll decide a change is more confusing than helpful, but we'll need someone to suggest a wording to decide that. |
|
Date |
User |
Action |
Args |
2014-12-03 18:49:57 | r.david.murray | set | recipients:
+ r.david.murray, gvanrossum, pitrou, vstinner, giampaolo.rodola, docs@python, ethan.furman, yselivanov, fov |
2014-12-03 18:49:57 | r.david.murray | set | messageid: <1417632597.7.0.681785594826.issue22988@psf.upfronthosting.co.za> |
2014-12-03 18:49:57 | r.david.murray | link | issue22988 messages |
2014-12-03 18:49:57 | r.david.murray | create | |
|