This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Alan.Cristhian
Recipients Alan.Cristhian, docs@python
Date 2013-10-29.22:55:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383087333.66.0.191656186181.issue19441@psf.upfronthosting.co.za>
In-reply-to
Content
I had some problems using itertools.tee function. Fortunately I found the following advice on the PEP-323:

"Currently, the copied iterators remaintied to the original iterator. If the original advances, then so do all of the copies. Good practice is to overwrite the original So THAT anamolies do result: a, b = t (a)."

I believe that such advice should be in the documentation as well:

"Currently, the copied iterators remaintied to the original iterator. If the original advances, then so do all of the copies and vice versa. Good practice is to overwrite the original So THAT anamolies do result: a, b = t (a ). "

Note that I added "and vice versa".
History
Date User Action Args
2013-10-29 22:55:33Alan.Cristhiansetrecipients: + Alan.Cristhian, docs@python
2013-10-29 22:55:33Alan.Cristhiansetmessageid: <1383087333.66.0.191656186181.issue19441@psf.upfronthosting.co.za>
2013-10-29 22:55:33Alan.Cristhianlinkissue19441 messages
2013-10-29 22:55:33Alan.Cristhiancreate