title: Referencing range of IP addresses
body: <p>I am trying to specify a range of addresses that will be set every time an API is called. For the example below, when <code>api</code> is referenced, I would like it to hosts in the range to a list, and not just one as it currently does.</p>
  
  <pre><code>api = xmlrpclib.ServerProxy("http://user:pass@192.168.0.1:8442/")
  </code></pre>
  
  <p>Generating the addresses seems straightforward enough, but I am unsure how to store it so that when <code>api</code> is reference, it's sends to every host, e.g. 192.168.0.1 - 192.168.0.100 and not just one.</p>
  
  <pre><code>for i in range(100):
      ip = "192.168.0.%d" % (i)
      print ip
  </code></pre>
  
  <p>I would also like to be able to specify the range, e.g. 192.168.0.5 - 192.168.0.50 rather then incrementing from zero.</p>
  
  <p><strong>Update:</strong> The API does not handle a list very well so the solution need to be able to parse the list. Might this simply require a second <code>for</code> statement?</p>