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 Dmitry Odzerikho
Recipients Dmitry Odzerikho
Date 2015-06-21.10:59:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1434884360.87.0.819783838298.issue24482@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I'm using iterators returned by itertools.tee in different threads. The original iterator passed to itertools.tee is thread-safe, however, it doesn't guarantees that the cloned iterators are thread safe too. However the equivalent implementation of itertools.tee in pure Python seems to work fine in this case. Is it expected or I'm doing something wrong?

I'm attaching a simple example that shows the behaviour.
History
Date User Action Args
2015-06-21 10:59:20Dmitry Odzerikhosetrecipients: + Dmitry Odzerikho
2015-06-21 10:59:20Dmitry Odzerikhosetmessageid: <1434884360.87.0.819783838298.issue24482@psf.upfronthosting.co.za>
2015-06-21 10:59:20Dmitry Odzerikholinkissue24482 messages
2015-06-21 10:59:20Dmitry Odzerikhocreate