Message245588
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. |
|
Date |
User |
Action |
Args |
2015-06-21 10:59:20 | Dmitry Odzerikho | set | recipients:
+ Dmitry Odzerikho |
2015-06-21 10:59:20 | Dmitry Odzerikho | set | messageid: <1434884360.87.0.819783838298.issue24482@psf.upfronthosting.co.za> |
2015-06-21 10:59:20 | Dmitry Odzerikho | link | issue24482 messages |
2015-06-21 10:59:20 | Dmitry Odzerikho | create | |
|