netaddr value back to IP

Noah noah-list at enabled.com
Thu Nov 13 11:30:16 EST 2014


Hi there List,

I am trying to get a value back to IP using the netaddr python module.
How do I get the value 'ip' back to IP format?  how is it done?

---- snip ----

     print IPNetwork(v4_peer_ip).value
     ip = IPNetwork(v4_peer_ip).value + 1
     print ip

--- snip ---

Cheers,
Noah



More information about the Python-list mailing list