]> granicus.if.org Git - python/commit
Added itertools.tee()
authorRaymond Hettinger <python@rcn.com>
Fri, 24 Oct 2003 08:45:23 +0000 (08:45 +0000)
committerRaymond Hettinger <python@rcn.com>
Fri, 24 Oct 2003 08:45:23 +0000 (08:45 +0000)
commit6a5b02774284c20d6860edc16157cb99a0c0b3ca
treec73b067ee8a94069abb4d44ad1e00f73a6c4aa5b
parent16b9fa8db30f6657fa3fb73724cc3d3f1432c16d
Added itertools.tee()

It works like the pure python verion except:
* it stops storing data after of the iterators gets deallocated
* the data queue is implemented with two stacks instead of one dictionary.
Doc/lib/libitertools.tex
Lib/test/test_itertools.py
Misc/NEWS
Modules/itertoolsmodule.c