title: Python - ip <-> subnet match?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/819355/how-can-i-check-if-an-ip-is-in-a-network-in-python">How can I check if an ip is in a network in python</a>  </p>
  </blockquote>
  
  
  
  <p>What is the easy way to match subnet to an ip address in python, so that if the ip address is in the subnet I can choose it?</p>
  
  <p>Thanks in advance.</p>