Re: Recursive generators and backtracking search
- From: aleaxit@xxxxxxxxx (Alex Martelli)
- Date: Sat, 29 Oct 2005 14:19:42 -0700
Talin <viridia@xxxxxxxxx> wrote:
> even simpler - for examle, the idea of being able to return the output
> of one generator directly from another instead of having to iterate
> through all of the results and then re-yield them has already been
> discussed in this forum.
I missed those discussions, having been away from the group for awhile.
To me, the simplification of changing, e.g.,
for x in whatever_other_iterable: yield x
into (say)
yield from whatever_other_iterable
is minute and not worth changing the syntax (even though something like
'yield from' would mean no keywords would need to be added).
Alex
.
- References:
- Recursive generators and backtracking search
- From: Talin
- Recursive generators and backtracking search
- Prev by Date: Re: Scanning a file
- Next by Date: lambda functions within list comprehensions
- Previous by thread: Recursive generators and backtracking search
- Next by thread: Re: Recursive generators and backtracking search
- Index(es):