python and ip range?
<p>For example, I have a file ( city and ip addresses ):</p>

<pre><code>....
City1    31.25.87.0 - 31.25.87.15
 .... .... 
City2    31.47.224.0 - 31.47.255.255
....
</code></pre>

<p>How to know by ip adress city name ?</p>
