yield_all needed in Python

Isaac To isaact at outblaze.com
Wed Mar 2 03:37:07 CET 2005


>>>>> "Isaac" == Isaac To <iketo2 at 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.



More information about the Python-list mailing list