<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 07/14/2014 05:56 PM, Christian
Rößner wrote:<br>
</div>
<blockquote cite="mid:DE75BF53-301E-42FA-9F8C-3CF0E8CCE4D3@sys4.de"
type="cite">
I am asking for Python3, because I realize that all kinds of
modules are still not ported to 3.x and I wonder why, because many
new modules are included in std lib in newer Python. For example
IP address support will be part of 3.4 (I believe).<br>
</blockquote>
In Python 2.x, the ipaddr module (notice different spelling than
ipaddress for python3) provides the same support. For code (like
pyspf) that runs in both 2 and 3, you can do this:<br>
<blockquote>
<address>try:</address>
<address> # Python standard library as of python3.3</address>
<address> import ipaddress</address>
<address>except ImportError:</address>
<address> try:</address>
<address> import ipaddr as ipaddress</address>
<address> except ImportError:</address>
<address> print('ipaddr module required:
http://code.google.com/p/ipaddr-py/')</address>
</blockquote>
<br>
</body>
</html>