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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 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