Skip to main content

Itertools recipes.

Project description

About iterutils

These functions have been taken from the recipes in the Python documentation for itertools. They were originally written by Raymond Hettinger and various other people.

This license applies to the Python documentation.

The idea to collect all of the itertools recipes into a module named iterutils is from this post by Alex Martelli.

Installation

Because iterutils has been packaged for pypi, it can be installed using:

$ pip install iterutils

Usage

After iterutils has been installed, its functions can be imported and used as follows:

>>> import iterutils
>>> list(iterutils.pairwise('abc'))
[('a', 'b'), ('b', 'c')]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iterutils-0.1.6.tar.gz (3.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page