h0arry / ipaddr-py

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

for Python 3 distinction #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This is just a feature request for the webpage, i got her using google and i'm 
wondering what version is the latest stable for Python 3, i couldn't find it on 
the readme and the changelog is not clear about it, i'm a little afraid of 
installing the library and messing up my Python 3 installation, i'm kinda new 
with Python and i'd love to use this library since i just spent half morning 
creating my own parser and manipulator for IP's :P

TLDR. which version should i download for Python 3?

Original issue reported on code.google.com by guillerm...@gmail.com on 5 Mar 2011 at 7:37

GoogleCodeExporter commented 9 years ago
Ok got the latest version ran setup.py and then
import ipaddr
no error, ok
but then i did
ipaddr.IPv4Address('1.1.1.1')
and got this:
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "C:\Python31\lib\site-packages\ipaddr.py", line 1197, in __init__
    if isinstance(address, (int, long)):
NameError: global name 'long' is not defined

Original comment by guillerm...@gmail.com on 5 Mar 2011 at 8:04

GoogleCodeExporter commented 9 years ago
run test2to3.sh and use the resulting output (should be under 2to3output/)

Original comment by pmo...@google.com on 6 Mar 2011 at 8:40