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 serhiy.storchaka
Recipients giampaolo.rodola, gvanrossum, ncoghlan, pitrou, python-dev, scoder, serhiy.storchaka, vstinner, yselivanov
Date 2016-11-04.18:06:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1478282802.22.0.341100702312.issue23996@psf.upfronthosting.co.za>
In-reply-to
Content
Yet one special case -- if asynchronous iterator in aiter_wrapper is an instance of StopIteration.

Proposed patch adds the function _PyGen_SetStopIterationValue() that raises StopIteration with correctly wrapped value (exception is normalized only if needed) and replaces 4 code duplications with it. The patch also includes Yury's variant of Stefan's patch and additional tests.
History
Date User Action Args
2016-11-04 18:06:42serhiy.storchakasetrecipients: + serhiy.storchaka, gvanrossum, ncoghlan, pitrou, scoder, vstinner, giampaolo.rodola, python-dev, yselivanov
2016-11-04 18:06:42serhiy.storchakasetmessageid: <1478282802.22.0.341100702312.issue23996@psf.upfronthosting.co.za>
2016-11-04 18:06:42serhiy.storchakalinkissue23996 messages
2016-11-04 18:06:40serhiy.storchakacreate