Message258058
If the coroutine-iterator is going to raise RuntimeError rather than StopIteration, do you think the __await__() documentation <https://docs.python.org/dev/reference/datamodel.html#object.__await__> should be clarified?
IMO “yield from coroutine_iterator” might be plausable for some strange combination of 3.4 code and a 3.5 coroutine, but I think it would be rare. And if you added a check in __await__() then the using “await” wouldn’t need to rely on next() raising the RuntimeError. |
|
Date |
User |
Action |
Args |
2016-01-12 02:25:47 | martin.panter | set | recipients:
+ martin.panter, gvanrossum, brett.cannon, ncoghlan, vstinner, asvetlov, yselivanov |
2016-01-12 02:25:47 | martin.panter | set | messageid: <1452565547.47.0.250186620087.issue25887@psf.upfronthosting.co.za> |
2016-01-12 02:25:47 | martin.panter | link | issue25887 messages |
2016-01-12 02:25:47 | martin.panter | create | |
|