Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

itertools operations on infinite generators.

Project description

Description

Some of the itertools operations do not work on infinite generators, this package is the beginning of the work to port some of the iterator concepts to the infinity.

infinite is compatible with both python2 and python3.

Installation

The package has been uploaded to PyPI, so you can install the package using pip:

pip install infinite

Usage

For example if we want to iterate all the pairs of natural numbers:

from itertools import count
from infinite import product

for x, y in product(count(0), count(0)):
    print(x, y)
    if (x, y) == (3, 3):
        break

Project details


Release history Release notifications

This version
History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
infinite-0.1.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None Dec 12, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page