Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    lrange 0.0.5

    Download button

    No screenshots available
    Downloads: 140  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    zed | More programs
    MIT/X Consortium Lic... / FREE
    October 7th, 2010, 15:40 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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[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 http://github.com/zed/lrange/


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    range function | Python library | range | function | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM