How to kill threading.Thread instance?

Fredrik Lundh fredrik at pythonware.com
Sun Sep 21 07:37:39 EDT 2008


dmitrey wrote:

> BTW, it should be noticed that lots of threading module methods have
> no docstrings (in my Python 2.5), for example _Thread__bootstrap,
> _Thread__stop.

things named _Class__name are explicitly marked private by the 
implementation (using the "__" prefix).

using them just because you can find them via "dir" is a really stupid 
idea.  (and, as noted in the comment section to the recipe, the "stop" 
method flags a thread as stopped, it doesn't stop it.)

</F>




More information about the Python-list mailing list