Message279095
pure Python Future.__iter__ don't use what yield-ed.
def __iter__(self):
if not self.done():
self._asyncio_future_blocking = True
yield self # This tells Task to wait for completion.
assert self.done(), "yield from wasn't used with future"
return self.result() # May raise too.
I felt no-None value is sent by iter.send(val) wasn't make sense.
But Tornado did it (maybe, for compatibility to Tornado's generator.)
So this patch ignores when non-None value is passed.
Additionally, I moved NEWS entry about C Future from "core and builtin"
section to "library" section. |
|
Date |
User |
Action |
Args |
2016-10-21 01:37:16 | methane | set | recipients:
+ methane, gvanrossum, socketpair, yselivanov |
2016-10-21 01:37:15 | methane | set | messageid: <1477013835.37.0.953989899588.issue28430@psf.upfronthosting.co.za> |
2016-10-21 01:37:15 | methane | link | issue28430 messages |
2016-10-21 01:37:14 | methane | create | |
|