No threading.start_new_thread(), useful addition?

Christian Heimes lists at cheimes.de
Thu Oct 8 13:24:14 CEST 2009


Laszlo Nagy wrote:
> But really thread.start_new_thread is better:
> 
> import thread.start_new_thread as thr
> 
> thr(my_function,arg1,arg2)

Please don't use the thread module directly, especially the
start_new_thread function. It a low level function that bypasses the
threading framework. The is no good reason to use this function in favor
of threading.Thread().

Christian




More information about the Python-list mailing list