yield from multiple iterables (was Re: The async API of the future: yield-from)
14 Oct
2012
14 Oct
'12
4:15 p.m.
On Oct 14, 2012 8:42 AM, "Guido van Rossum"
Sadly it looks that
r = yield from (f1(), f2())
ends up interpreting the tuple as the iterator, and you end up with
r = (f1(), f2())
(i.e., a tuple of generators) rather than the desired
r = ((yield from f1()), (yield from f2()))
Didn't want this tangent to get lost to the async discussion. Would it be too late to make a change along these lines? Would it be enough of an improvement to be warranted? -eric
4174
Age (days ago)
4184
Last active (days ago)
106 comments
20 participants
participants (20)
-
Benoit Chesneau
-
Brett Cannon
-
Christian Tismer
-
Dino Viehland
-
Eric Snow
-
Eric V. Smith
-
Greg Ewing
-
Guido van Rossum
-
Jasper St. Pierre
-
Jim Jewett
-
Laurens Van Houtven
-
Mark Lawrence
-
Mark Shannon
-
Nick Coghlan
-
Sam Rushing
-
Steve Dower
-
Steven D'Aprano
-
Terry Reedy
-
Tom Hoover
-
Vinay Sajip