Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ab425aa

Browse files
committed
Issue #16394: Note the tee() pure python equivalent is only a rough approximation.
1 parent cd9b5c2 commit ab425aa

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/library/itertools.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,10 @@ loops that truncate the stream.
588588

589589
.. function:: tee(iterable, n=2)
590590

591-
Return *n* independent iterators from a single iterable. Equivalent to::
591+
Return *n* independent iterators from a single iterable.
592+
593+
The following Python code helps explain what *tee* does (although the actual
594+
implementation is more complex and uses only a single underlying FIFO queue)::
592595

593596
def tee(iterable, n=2):
594597
it = iter(iterable)

0 commit comments

Comments
 (0)