We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0317f7 commit b608303Copy full SHA for b608303
1 file changed
Doc/library/itertools.rst
@@ -742,18 +742,6 @@ loops that truncate the stream.
742
Previously, the first iterator in the result could be the same object as the
743
input, causing inconsistent behavior.
744
745
- .. doctest::
746
-
747
- >>> it = iter([1, 2, 3])
748
- >>> a, b = tee(it)
749
- >>> c, d = tee(a)
750
- >>> list(b)
751
- [1, 2, 3]
752
- >>> list(c)
753
754
- >>> list(d)
755
756
757
The flattening property makes tee iterators efficiently peekable:
758
759
.. testcode::
0 commit comments