testing '192.168.1.4' is in '192.168.1.0/24' ?

B

bonono

Hi,

Is there standard library modules handling this ? currently I need to
turn it into a long integer and do the shift and compare.
 
B

bonono

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.
 
P

Peter Hansen

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.

Well, since a Google search for "site:docs.python.org subnet" turns up
nothing, one would assume not, but it would be hard to prove it without
an exhaustive review of the source code. ;-)

-Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top