IP list generation

Peter Hansen peter at engcorp.com
Wed Feb 18 11:45:41 EST 2004


Paul Rubin wrote:
> 
> Stephen Briley <sdb1031 at yahoo.com> writes:
> > By in between I mean increment the first ip address by
> > 1 until the end ip address is reached.  For example,
> > a range of 10.0.0.1 - 10.0.0.5 would print:
> > 10.0.0.2
> > 10.0.0.3
> > 10.0.0.4
> 
> You're not a spammer looking for open SMTP relays or something like
> that, are you?  You're beginning to sound like one.

If he is, we should perhaps be honest with him and let him know that
this is well beyond Python's rather limited capabilities.  There are
other languages much better suited to sophisticated networking applications
that require incrementing through a range of "ip addresses".  

LabVIEW, for example, or perhaps PL/SQL...

-Peter



More information about the Python-list mailing list