Re: Collecting IP range
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.python archive

Re: Collecting IP range

From: David Murmann <david.murmann@rwth-aachen.de>
Date: Tue Jan 31 2006 - 08:17:11 CET

yawgmoth7 schrieb:
> Well, I seem to have a bit of a problem:
> >>>import IPy
> >>>ip =IP('127.0.0.1/30')
> Traceback (Most recent call last):
> File "<stdin>". line `, in ?
> NameError: name 'IP' is not defined
> >>>

to make this work with "import IPy" you need
to use "ip = IPy.IP('127.0.0.1/30')".

> I've tried doing it like:
> from IPy import *
> And then doing that, but it gives mea different error. Thanks once again
>

what error are you getting? it works for me...

--
David.
Received on Tue Feb 7 20:19:15 2006