Message166965
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. |
|
Date |
User |
Action |
Args |
2012-07-31 07:14:59 | eli.bendersky | set | recipients:
+ 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:59 | eli.bendersky | set | messageid: <1343718899.16.0.468576312325.issue14814@psf.upfronthosting.co.za> |
2012-07-31 07:14:58 | eli.bendersky | link | issue14814 messages |
2012-07-31 07:14:58 | eli.bendersky | create | |
|