Threads and classes

Gordon McMillan gmcm at hypernet.com
Thu Feb 24 18:45:45 EST 2000


Jp Calderone asks:
 
>  Which of the following is better/prefered, or is the absolutely no difference?
> 
> thread.start_new_thread(SomeClass.someMethod, (someInstance,))
> 
>      or
> 
> thread.start_new_thread(SomeInstance.someMethod, ())

The threading module would be much better than the thread 
module. As for the styles, I'd vote for #2.

- Gordon




More information about the Python-list mailing list