testing '192.168.1.4' is in '192.168.1.0/24' ?
bonono at gmail.com
bonono at gmail.com
Mon Oct 24 04:21:31 EDT 2005
thanks, that is basically what I am doing and since it is a recipe, I
would assume there is no standard library module for it.
Peter Hansen wrote:
> bonono at gmail.com wrote:
> > Is there standard library modules handling this ? currently I need to
> > turn it into a long integer and do the shift and compare.
>
> A little Googling turned up this:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440560
>
> -Peter
More information about the Python-list
mailing list