This bit of code hangs Python Indefinitely

Istvan Albert istvan.albert at gmail.com
Wed Aug 8 09:48:01 EDT 2007


On Aug 8, 9:38 am, brad <byte8b... at gmail.com> wrote:
> 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:


See the docs, especially the block and timeout parameter for the put
method:

http://docs.python.org/lib/QueueObjects.html


Istvan




More information about the Python-list mailing list