iterator clone

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


On 13 juil, 12:05, Yosifov Pavel <b... at ngs.ru> wrote:
(snip)

> 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
remaining...




More information about the Python-list mailing list