Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

lrange - unlimited xrange in pure Python

Project Description

lrange is a lazy range function for Python 2.x or xrange drop-in replacement for long integers.

lrange is a pure Python analog of the builtin range function from Python 3.x.

>>> from lrange import lrange
>>> r = lrange(2**100, 2**101, 2**100)
>>> len(r)
1
>>> for i in r:
...     print i,
1267650600228229401496703205376
>>> for i in r:
...     print i,
1267650600228229401496703205376
>>> 2**100 in r
True
>>> r[0], r[-1]
(1267650600228229401496703205376L, 1267650600228229401496703205376L)
>>> L = list(r)
>>> L2 = [1, 2, 3]
>>> L2[:] = r
>>> L == L2 == [2**100]
True

Files are licensed under the MIT License. See the file MIT-LICENSE.txt for details.

The latest version is at https://github.com/zed/lrange/

Release History

Release History

This version
History Node

1.0.0

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4.dev

History Node

0.0.3.dev

History Node

0.0.2.dev

History Node

0.0.1.dev

History Node

0.0.0.dev

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lrange-1.0.0-py2.py3-none-any.whl (5.1 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Mar 20, 2017
lrange-1.0.0.tar.gz (11.5 kB) Copy SHA256 Checksum SHA256 Source Mar 20, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting