Re: Debugging thread stall

2009-11-27 Thread silvercl
On Nov 27, 3:22 pm, Roy Smith  wrote:
> I've got an application which uses several threads (from the threading
> module) to do I/O.  Inexplicably, I've now got a situation where one thread
> stalls.
>
> Are there any good tools for debugging Python threading problems?  I'm
> thinking of something which might print out a list of all the threads, what
> they're waiting on, and what locks they hold.

You might be aware of pdb (python debugger)
Here's one tutorial (Appendix A) which might be helpful...
http://heather.cs.ucdavis.edu/~matloff/Python/PyThreads.pdf


Cheers,
Silver.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Please recommend the books that might be helpful to learn Python :)

2009-11-17 Thread silvercl
On Nov 17, 7:18 am, Psi  wrote:
> as the subject says,
>
> any books?

This is one of the good books available on the internet...
http://diveintopython.org/
I myself liked this book very much (to start with).
Also, on the website, on the right-hand-side it mentions about other
books.


--
Silver, Chandrakant.
-- 
http://mail.python.org/mailman/listinfo/python-list