예제 #1
0
def igetprocs():

    Retn = getprocs.getfirstproc()
    yield Retn

    while Retn:
        Retn = getprocs.getnextproc()
        if Retn:
            yield Retn
예제 #2
0
def igetprocs():

    retn = getprocs.getfirstproc()
    first = True

    while retn or first:
        yield retn
        first = False
        retn = getprocs.getnextproc()
예제 #3
0
def igetprocs():
    proc = getprocs.getfirstproc()
    while proc:
        yield proc
        proc = getprocs.getnextproc()