thread module

TheDustbustr thedustbustr at aol.com
Mon Jul 23 21:02:18 EDT 2001


What args are encessary when you call thread.start_new_thread()?  The module
index says:

"start_new_thread (function, args[, kwargs]) 
Start a new thread. The thread executes the function function with the argument
list args (which must be a tuple). The optional kwargs argument specifies a
dictionary of keyword arguments."

How do I create a simple thread like so:
def hi():
  print "Hi!"
thread.start_new_thread(hi(),args)

What are the args?



More information about the Python-list mailing list