iterator clone

bruno.desthuilliers at bruno.desthuilliers at
Mon Jul 14 12:36:41 EDT 2008

On 13 juil, 12:05, Yosifov Pavel <b... at> wrote:

> def cloneiter( it ):
>     """return (clonable,clone)"""
>     return tee(it)

This might as well be written as

cloneiter  = tee

Or yet better, just remove the above code and s/cloneiter/tee/g in the

More information about the Python-list mailing list