Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80692
| Date | 2014-11-13 16:30 +0000 |
|---|---|
| From | Noah <noah-list@enabled.com> |
| Subject | netaddr value back to IP |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15782.1415896539.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
netaddr value back to IP Noah <noah-list@enabled.com> - 2014-11-13 16:30 +0000 Re: netaddr value back to IP Michael Ströder <michael@stroeder.com> - 2014-11-14 10:03 +0100
csiph-web