h0arry / ipaddr-py

Automatically exported from code.google.com/p/ipaddr-py
0 stars 0 forks source link

Python 3 support. #115

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run ipaddr_tesy.py using Python 3.4
2. Get a SyntaxError due to long literal usage.

What is the expected output? What do you see instead?

The tests run successfully.

What version of the product are you using? On what operating system?

c813f4790d1092b1515ee18fe8270180ed3cc5cb, Ubuntu 14.04

Please provide any additional information below.

Given that the code runs just fine with a simple 2to3 run it seems that 
supporting both versions would be fairly easy. Perhaps with the use of some 
helper functions to keep the long values right across Python versions.

Additionally it would be very nice to add trove tags for supported python 
versions to the setup.py so that people can tell which of their dependencies is 
blocking them from upgrading more easily.

Original issue reported on code.google.com by alex.sta...@gmail.com on 18 Apr 2015 at 10:17

GoogleCodeExporter commented 9 years ago
While Python 3 does come with https://docs.python.org/3/library/ipaddress.html 
it's not API compatible with this library which means downstream users need to 
do more work to support multiple Python versions.

Original comment by alex.sta...@gmail.com on 18 Apr 2015 at 10:21

GoogleCodeExporter commented 9 years ago
> it seems that supporting both versions would be fairly easy.

Unfortunately it isn't.

> it's not API compatible with this library which means downstream users need 
to do more work to support multiple Python versions.

That's correct.

Original comment by pmo...@google.com on 18 Apr 2015 at 5:35