<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
brad wrote:
<blockquote
 cite="mid:NYOBGCEXSMTP21yT3400005025f@nyobgcexsmtp21.uswin.ad.vzwcorp.com"
 type="cite">
  <pre wrap="">url_queue = Queue.Queue(256)
for subnet in subnets:
     url_queue.put(subnet)

The problem is that I have 512 things to add to the queue, but my limit 
is half that... whoops. Shouldn't the interpreter tell me that I'm an 
idiot for trying to do this instead of just hanging? A message such as 
this would be more appropriate:

"Hey fool, you told me to only accept 256 things and you're trying to 
give me 512... what's up with that?"
  </pre>
</blockquote>
<font face="Bitstream Vera Sans">If you used put_nowait(subnet), or
put(subnet, False), then you would get an error. By default, put() will
block when the specified limit is reached. When the queue is no longer
full, the put will proceed. See the Queue module docs for complete info.<br>
<br>
HTH, <br>
<br>
Bill<br>
</font>
</body>
</html>