diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2019-09-09 08:18:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-09 08:18:16 (GMT) |
commit | 918b468b7d5ebf1ec5e604cb0d99605cee38d983 (patch) | |
tree | c18a19721edcbb6d21ab2b98f72847ec0189db27 /Doc | |
parent | 4db25d5c39e369f4b55eab52dc8f87f390233892 (diff) | |
download | cpython-918b468b7d5ebf1ec5e604cb0d99605cee38d983.zip cpython-918b468b7d5ebf1ec5e604cb0d99605cee38d983.tar.gz cpython-918b468b7d5ebf1ec5e604cb0d99605cee38d983.tar.bz2 |
Revert "Raise a RuntimeError when tee iterator is consumed from different threads (GH-15567)" (GH-15736)
This reverts commit fa220ec7633e9674baccc28dde987f29d7f65141.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/itertools.rst | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/library/itertools.rst b/Doc/library/itertools.rst index 8e7899e..a3f403a 100644 --- a/Doc/library/itertools.rst +++ b/Doc/library/itertools.rst @@ -643,8 +643,7 @@ loops that truncate the stream. Once :func:`tee` has made a split, the original *iterable* should not be used anywhere else; otherwise, the *iterable* could get advanced without - the tee objects being informed. the :func:`tee` iterator can not be consumed - from different threads, even if an underlying iterator is thread-safe. + the tee objects being informed. This itertool may require significant auxiliary storage (depending on how much temporary data needs to be stored). In general, if one iterator uses |