This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients ned.deily, yselivanov
Date 2016-11-16.23:12:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479337923.66.0.886081078513.issue28721@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2016-11-16 23:12:03yselivanovsetrecipients: + yselivanov, ned.deily
2016-11-16 23:12:03yselivanovsetmessageid: <1479337923.66.0.886081078513.issue28721@psf.upfronthosting.co.za>
2016-11-16 23:12:03yselivanovlinkissue28721 messages
2016-11-16 23:12:03yselivanovcreate