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

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.
Date User Action Args
2015-06-21 10:59:20Dmitry Odzerikhosetrecipients: + Dmitry Odzerikho
2015-06-21 10:59:20Dmitry Odzerikhosetmessageid: <>
2015-06-21 10:59:20Dmitry Odzerikholinkissue24482 messages
2015-06-21 10:59:20Dmitry Odzerikhocreate