Collecting IP range

Heiko Wundram modelnine at bit-bukket.org
Tue Jan 31 04:23:01 EST 2006


yawgmoth7 wrote:
> Well, since range() won't take a normal IP(Such as 127.0.0.1). and,
> you can't take it as 127001(Since socket.connect() won't take that).
> What would you suggest as a better way to approach this?

Use a recipe for that. Have a look at:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/466286
and
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/466298

--- Heiko Wundram.



More information about the Python-list mailing list