We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2a8d89 commit 6bd711cCopy full SHA for 6bd711c
Doc/library/itertools.rst
@@ -645,6 +645,10 @@ loops that truncate the stream.
645
used anywhere else; otherwise, the *iterable* could get advanced without
646
the tee objects being informed.
647
648
+ ``tee`` iterators are not threadsafe. A :exc:`RuntimeError` may be
649
+ raised when using simultaneously iterators returned by the same :func:`tee`
650
+ call, even if the original *iterable* is threadsafe.
651
+
652
This itertool may require significant auxiliary storage (depending on how
653
much temporary data needs to be stored). In general, if one iterator uses
654
most or all of the data before another iterator starts, it is faster to use
0 commit comments