Message280062
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. |
|
Date |
User |
Action |
Args |
2016-11-04 18:06:42 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, gvanrossum, ncoghlan, pitrou, scoder, vstinner, giampaolo.rodola, python-dev, yselivanov |
2016-11-04 18:06:42 | serhiy.storchaka | set | messageid: <1478282802.22.0.341100702312.issue23996@psf.upfronthosting.co.za> |
2016-11-04 18:06:42 | serhiy.storchaka | link | issue23996 messages |
2016-11-04 18:06:40 | serhiy.storchaka | create | |
|