IP list generation

Peter Hansen peter at engcorp.com
Tue Feb 17 14:38:41 EST 2004


Stephen Briley wrote:
> 
> 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.  If so, what is the
> recommended way?  Is there a way to do this with the
> supplied python modules?

If you mean "is there a standard module which does exactly this?"
then the answer is no. 

There may well be an appropriate method in a package somewhere out
there already.

It might help to (a) give an example, and (b) describe the ultimate 
purpose of script, so you can get more helpful answers.

-Peter



More information about the Python-list mailing list