Skip to main content

Building blocks for iterators, preserving their :func:`len`\ s.

Project description

pkg docs ci cov

Have you ever been annoyed that the length information of itertools have not been preserved?

This module faithfully wraps every one of them (together with map) where len can be derived:

>>> from itertools_len import chain, product
>>> len(chain('abc', [1, 2]))
5
>>> len(product('abc', [1, 2]))
6

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

itertools-len-1.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

itertools_len-1.0-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file itertools-len-1.0.tar.gz.

File metadata

  • Download URL: itertools-len-1.0.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for itertools-len-1.0.tar.gz
Algorithm Hash digest
SHA256 5d4d4da6da854a9d24d47a674f66198001077ef0ad6017d5619dfaff288eb3e2
MD5 3b7df5b78bf12c6675455a268fd49791
BLAKE2b-256 5f134a61872e76db69603f1e877a650f8577ecf58243ce6a447693db797e8673

See more details on using hashes here.

File details

Details for the file itertools_len-1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for itertools_len-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17c85cb54f831487e8ad18e4c7dc20c3d0f2a0b24ecce336e613f714394b7b72
MD5 4489ebb1b3f2d07448c639e62b71d5e4
BLAKE2b-256 e376491e9dbce3e8d12a45e4988bdb337593a06da196370d3635e374696b9846

See more details on using hashes here.

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