timmerk / python-iptools

Automatically exported from code.google.com/p/python-iptools
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

xrange incompatible with long int #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
As the python documentation describes, some platforms do not support long
int for xrange arguments.

Running the example code from the wiki results in "OverflowError: long int
too large to convert to int" on OS X 10.5.8 on intel mac with the default
system 2.5 python.

I have attached a patch that should work as an alternative. No claim to the
validity or accuracy of the patch.

Original issue reported on code.google.com by jeremylu...@gmail.com on 2 Nov 2009 at 10:17

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed in r10.

Original comment by casadebender on 31 Dec 2009 at 10:58