multythreading app memory consumption

Istvan Albert istvan.albert at gmail.com
Mon Oct 23 12:08:51 EDT 2006


Roman Petrichev wrote:

>          try:
>              url = Q.get()
>          except Queue.Empty:
>              break

This code will never raise the Queue.Empty exception. Only a
non-blocking get does:

url = Q.get(block=False)

As mentioned before you should post working code if you expect people
to help.

i.




More information about the Python-list mailing list