This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eli.bendersky
Recipients Ramchandra Apte, amak, eli.bendersky, eric.araujo, ezio.melotti, georg.brandl, giampaolo.rodola, hynek, ncoghlan, pmoody, python-dev, sandro.tosi, serhiy.storchaka, terry.reedy, tshepang
Date 2012-07-31.07:14:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343718899.16.0.468576312325.issue14814@psf.upfronthosting.co.za>
In-reply-to
Content
I'm looking at the docs. Started with the HOWTO (Doc/howto/ipaddress.rst)

This example:

>>> net4 = ipaddress.ip_network('192.0.2.0/24')
>>> for x in net4.iterhosts():
       print(x)

Seems to be wrong:

... 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'IPv4Network' object has no attribute 'iterhosts'


I wonder if it simply needs to iterate the net4 object itself.
History
Date User Action Args
2012-07-31 07:14:59eli.benderskysetrecipients: + eli.bendersky, georg.brandl, terry.reedy, ncoghlan, giampaolo.rodola, amak, ezio.melotti, eric.araujo, pmoody, sandro.tosi, tshepang, python-dev, Ramchandra Apte, hynek, serhiy.storchaka
2012-07-31 07:14:59eli.benderskysetmessageid: <1343718899.16.0.468576312325.issue14814@psf.upfronthosting.co.za>
2012-07-31 07:14:58eli.benderskylinkissue14814 messages
2012-07-31 07:14:58eli.benderskycreate