Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions toolz/sandbox/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,16 @@ def unzip(seq):
[1, 2]

Unlike the naive implementation ``def unzip(seq): zip(*seq)`` this
implementation can handle a finite sequence of infinite sequences.
implementation can handle an infinite sequence ``seq``.

Caveats:

* The implementation uses ``tee``, and so can use a significant amount
of auxiliary storage if the resulting iterators are consumed at
different times.

* The top level sequence cannot be infinite.
* The inner sequence cannot be infinite. In Python 3 ``zip(*seq)`` can be
used if ``seq`` is a finite sequence of infinite sequences.

"""

Expand Down