im new to python threading question
Fredrik Lundh
fredrik at pythonware.com
Wed Feb 7 14:42:35 EST 2001
Bill Scherer wrote:
> > def funks(s):
> > do stuff with f
> >
> > how do i call def in a new thread and send it args s
>
> import thread
> thread.start_new_thread(funk, (s))
better make that:
thread.start_new_thread(funks, (s,))
or even better, use the "threading" module instead.
Cheers /F
<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->
More information about the Python-list
mailing list