Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Python 2 or 3? #23

Closed
jabagawee opened this Issue · 2 comments

2 participants

@jabagawee

Is this module in Python 2 or 3? I ask because I've been changing all instances of range to xrange for speed purposes, but I may be totally mistaken anyways.

@nryoung
Owner

@jabagawee
xrange is a Python 2 built-in function. It should be used in a lot of cases as it is faster and saves more memory then range. For reference: http://docs.python.org/library/functions.html#xrange

I intended the module to be Python 2, however, I would not be opposed to updating it eventually to use Python 3. I do think it would be best to create a separate repo for that purpose though.

@jabagawee

Thanks, I knew already about the whole xrange:range::generator:list stuff and the related speed improvements, I was just wondering if this project was meant to be in Python 2, which it is. :)

@jabagawee jabagawee closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.