Skip to main content
https://img.shields.io/coveralls/zed/lrange.svg https://img.shields.io/travis/zed/lrange/master.svg

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/

Metadata

Release files for lrange 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lrange 1.0.0
File Size Uploaded
lrange-1.0.0.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lrange 1.0.0
File Interpreter ABI Platform
lrange-1.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 16.6 kB

Release files / lrange-1.0.0.tar.gz

Download URL lrange-1.0.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
66c1ae29f7c481280e768b53106de1e368648262040bd048dbe66d73a9ac2f62
BLAKE2b-256 checksum
How to use checksums
ec7e345ea56bd2e57762665096730294dcf65ebe3b028d19ba97e054c0f4b2ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / lrange-1.0.0-py2.py3-none-any.whl

Download URL lrange-1.0.0-py2.py3-none-any.whl
Size 5.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
90f0535e343f2994490bcdfcfeabc27c85a960107139ef35c91cec0c242e216f
BLAKE2b-256 checksum
How to use checksums
c91a109cc33a0e0cfd13154b33a776214b7cebff6d6afff6ffcd5593088757fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page