Message281008
1. aclose() should not propagate StopAsyncIteration:
async def agen():
try:
yield
except:
pass
gen = agen()
await agen.asend(None)
await agen.aclose() # <- this shouldn't raise StopAsyncIteration
2. athrow() should propagate StopAsyncIteration when the exception was swallowed by the generator and it returned:
async def agen():
try:
yield
except:
pass
gen = agen()
await agen.asend(None)
await agen.athrow(ValueError) # <- this should raise StopAsyncIteration |
|
Date |
User |
Action |
Args |
2016-11-16 23:12:03 | yselivanov | set | recipients:
+ yselivanov, ned.deily |
2016-11-16 23:12:03 | yselivanov | set | messageid: <1479337923.66.0.886081078513.issue28721@psf.upfronthosting.co.za> |
2016-11-16 23:12:03 | yselivanov | link | issue28721 messages |
2016-11-16 23:12:03 | yselivanov | create | |
|