Message166965
| 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: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 |
|