Skip to main content

Alternative `enumerate` that can be reversed

Project description

https://travis-ci.org/cjrh/enumerate_reversible.svg?branch=master https://coveralls.io/repos/github/cjrh/enumerate_reversible/badge.svg?branch=master https://img.shields.io/pypi/pyversions/enumerate_reversible.svg https://img.shields.io/github/tag/cjrh/enumerate_reversible.svg https://img.shields.io/badge/install-pip%20install%20enumerate_reversible-ff69b4.svg https://img.shields.io/pypi/v/enumerate_reversible.svg https://img.shields.io/badge/calver-YYYY.MM.MINOR-22bfda.svg

enumerate_reversible

Alternative to the builtin enumerate(), that can be fed into another builtin, reversed(), as long as the collection being passed in implements the Sized abstract base class, which means that it implements __len__(). Note that it does not need to implement __getitem__.

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

enumerate_reversible-2020.4.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

enumerate_reversible-2020.4.2-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file enumerate_reversible-2020.4.2.tar.gz.

File metadata

  • Download URL: enumerate_reversible-2020.4.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for enumerate_reversible-2020.4.2.tar.gz
Algorithm Hash digest
SHA256 a3070d7660af1bc74e7634a83e3c8d9dcdba6dff6fa6aaa641f8a859cc4c3cdd
MD5 2cc916b63272465b76ac8c0ff6d5feef
BLAKE2b-256 60b74ac4e09d15d5465e967a3541fbc2883d0cd16d9bb6a8f2697f8f0c422345

See more details on using hashes here.

File details

Details for the file enumerate_reversible-2020.4.2-py3-none-any.whl.

File metadata

  • Download URL: enumerate_reversible-2020.4.2-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1

File hashes

Hashes for enumerate_reversible-2020.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a84674f676d740f178846c88363a66f7edd4c9d2c01b5209cb1302a681c77d85
MD5 20ea88ae77e97918012ff4578192ac21
BLAKE2b-256 505f384df12a8c7627cb2d59d7e04eb4c831cfa733dc7ed68e149f7d187520f0

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