Antoon Pardon <[EMAIL PROTECTED]> writes: > I think it would become something like: > > def myrepeat(*args): > obj = args[0] > tail = args[1:] > newobj = Process(obj) > newargs = (newobj,) + tail > return itertools.repeat(*newargs)
Too messy. Just write: def myrepeat(obj, *times): return itertools.repeat(Process(obj), *times) -- http://mail.python.org/mailman/listinfo/python-list