Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80692
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!diablo1.news.osn.de!news.osn.de!diablo2.news.osn.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <noah-list@enabled.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.122 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.76; '*S*': 0.01; 'python': 0.11; 'format?': 0.16; 'trying': 0.19; 'print': 0.22; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; '---': 0.24; '----': 0.29; 'there': 0.35; 'module.': 0.36; 'to:addr:python-list': 0.38; 'list,': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'subject:back': 0.60; 'back': 0.62; 'received:89': 0.85 |
| X-Virus-Scanned | Debian amavisd-new at enabled.com |
| Date | Thu, 13 Nov 2014 16:30:16 +0000 |
| From | Noah <noah-list@enabled.com> |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | netaddr value back to IP |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15782.1415896539.18130.python-list@python.org> (permalink) |
| Lines | 15 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1415896539 news.xs4all.nl 2893 [2001:888:2000:d::a6]:44968 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:80692 |
Show key headers only | View raw
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