lrange

Unlimited xrange in pure Python
Download

lrange Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MIT/X Consortium Lic...
  • Publisher Name:
  • zed
  • Publisher web site:
  • http://github.com/zed/

lrange Tags


lrange Description

Unlimited xrange in pure Python 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, r (1267650600228229401496703205376L, 1267650600228229401496703205376L) >>> L = list(r) >>> L2 = >>> L2 = r >>> L == L2 == TrueFiles are licensed under the MIT License. See the file MIT-LICENSE.txt for details.The latest version is at http://github.com/zed/lrange/ Requirements: · Python


lrange Related Software