Re: yield_all needed in Python
From: Douglas Alan (nessus_at_mit.edu)
Date: 03/02/05
- Next message: mensanator_at_aol.com: "Re: Jigsaw solver"
- Previous message: Xah Lee: "Re: [perl-python] generate all possible pairings"
- In reply to: Isaac To: "Re: yield_all needed in Python"
- Next in thread: Isaac To: "Re: yield_all needed in Python"
- Reply: Isaac To: "Re: yield_all needed in Python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 01 Mar 2005 23:50:20 -0500
Isaac To <isaact@outblaze.com> writes:
>>>>>> "Isaac" == Isaac To <iketo2@netscape.net> writes:
>
> def gen_all(gen):
> for e in gen:
> yield e
>
> def foogen(arg1):
> def foogen1(arg2):
> # Some code here
> # Some code here
> gen_all(arg3)
> ^ I mean foogen1(arg3), obviously, and similar for below
> # Some code here
> gen_all(arg4)
> # Some code here
> gen_all(arg5)
> # Some code here
> gen_all(arg6)
>
> Regards,
> Isaac.
If you actually try doing this, you will see why I want "yield_all".
|>oug
- Next message: mensanator_at_aol.com: "Re: Jigsaw solver"
- Previous message: Xah Lee: "Re: [perl-python] generate all possible pairings"
- In reply to: Isaac To: "Re: yield_all needed in Python"
- Next in thread: Isaac To: "Re: yield_all needed in Python"
- Reply: Isaac To: "Re: yield_all needed in Python"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|