timmerk / python-iptools

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

python3k compatibility #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It has been mentioned on
[http://stackoverflow.com/questions/1942160/python-3-create-a-list-of-possible-i
p-addresses-from-a-cidr-notation/1942178#1942178
stackoverflow] that it would be non-trivial to make iptools work with python3k.

Sounds like a challenge to me. :)

Original issue reported on code.google.com by casadebender on 1 Jan 2010 at 6:14

GoogleCodeExporter commented 9 years ago
Changed some syntax and added some builtin sniffing. Surprisingly most of the 
changes
needed were to support the doctests.

Tested with 2.6.2, 3.1.1 and 2.3.5 on Ubuntu 9.04 x86_64.

Removal of the 'L' long casts on literals will cause problems with python <2.3 
on
32bit platforms. If my reading of [http://www.python.org/dev/peps/pep-0237/ PEP 
237]
is correct I think 2.3 will be fine.

Original comment by casadebender on 1 Jan 2010 at 6:25

GoogleCodeExporter commented 9 years ago
fixes in r12.

Original comment by casadebender on 1 Jan 2010 at 6:27