2015-03-22 06:18:45 +00:00
|
|
|
``iterutils`` - ``itertools`` improvements
|
|
|
|
==========================================
|
2015-03-22 00:12:50 +00:00
|
|
|
|
|
|
|
.. automodule:: boltons.iterutils
|
2015-04-06 02:12:15 +00:00
|
|
|
|
|
|
|
Iteration
|
|
|
|
---------
|
|
|
|
|
|
|
|
These are generators and convenient :class:`list`-producing
|
|
|
|
counterparts comprising several common patterns of iteration missing
|
|
|
|
from the standard library.
|
|
|
|
|
|
|
|
.. autofunction:: split
|
|
|
|
.. autofunction:: split_iter
|
|
|
|
.. autofunction:: chunked
|
|
|
|
.. autofunction:: chunked_iter
|
|
|
|
.. autofunction:: windowed
|
|
|
|
.. autofunction:: windowed_iter
|
|
|
|
|
|
|
|
Categorization
|
|
|
|
--------------
|
|
|
|
|
|
|
|
These functions operate on iterables, dividing into groups based on a given condition.
|
|
|
|
|
|
|
|
.. autofunction:: bucketize
|
|
|
|
.. autofunction:: partition
|
|
|
|
|
|
|
|
Type Checks
|
|
|
|
-----------
|
|
|
|
|
|
|
|
In the same vein as the feature-checking builtin, :func:`callable`.
|
|
|
|
|
|
|
|
.. autofunction:: is_iterable
|
|
|
|
.. autofunction:: is_scalar
|