S
Stephen Briley
Hi all,
I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. I've attempted to
use the ipv4 module
(http://pynms.sourceforge.net/ipv4.html) ,but I am
unable to get past this error "AttributeError: 'str'
object has no attribute '_address".
Can any suggest a solution to this problem? Is there a
better way than using the ipv4 module?
Thanks,
Steve
.... print startadd
....
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\ipv4.py", line 250, in __cmp__
return cmp(self._address, other._address)
AttributeError: 'str' object has no attribute '_address'
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
I would like to write a python script that takes input
of 2 ip address, one a start address and the other the
end address and prints a list of all ip address in
between in dotted-decimal format. I've attempted to
use the ipv4 module
(http://pynms.sourceforge.net/ipv4.html) ,but I am
unable to get past this error "AttributeError: 'str'
object has no attribute '_address".
Can any suggest a solution to this problem? Is there a
better way than using the ipv4 module?
Thanks,
Steve
.... startadd = ip.nexthost()10.0.3.0
.... print startadd
....
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python23\lib\ipv4.py", line 250, in __cmp__
return cmp(self._address, other._address)
AttributeError: 'str' object has no attribute '_address'
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html