Skip to main content

Backport of the python 3.X `range` class

Project description

Backports the python 3.X range class as a replacement for python 2.X range functions. The range class is similar to xrange in that its values are computed on demand - however, the range class is actually a lazy sequence: it supports indexing, membership testing and other sequence features.

Features

This implementation provides all features introduced and documented in python 3.3.

Compatibility

  • Features are tested against the Python 3.6 unittests for range.

  • The following python versions are tested explicitly:

    • python (aka CPython): 2.6, 2.7, 3.2, 3.3, 3.4, 3.5
    • pypy: pypy2, pypy3
  • There is no official support for Cython yet.

  • Some features depending on language features or other modules may not be available:

    • Comparing range against other types does not throw TypeError in python 2.X.

Notice

This packages includes parts of the python documentation (http://www.python.org) Copyright (C) 2001-2016 Python Software Foundation. Licensed under the Python Software Foundation License.

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
backports.range-3.3.0-py2-none-any.whl (8.7 kB) Copy SHA256 hash SHA256 Wheel 2.7
backports.range-3.3.0.tar.gz (5.8 kB) Copy SHA256 hash SHA256 Source None

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