Threads, again

David Bolen db3l at fitlinxx.com
Thu Oct 19 13:26:00 EDT 2000


"Alex McHale" <daimun at home.com> writes:

> This may be a bit of a dumb question - but I, for the life of me, can't
> understand why, when using the thread module, start_new_thread will only
> pass a tuple of arguments to the function.  Can anyone explain this to me?
> Does this mean any function I want to thread, has to take 3 arguments?

No, it means it has to take a "tuple", which is just a set of
elements, and can be of any length.  You may be thinking of "triplet"
which would be a set of 3 elements only.

--
-- David
-- 
/-----------------------------------------------------------------------\
 \               David Bolen            \   E-mail: db3l at fitlinxx.com  /
  |             FitLinxx, Inc.            \  Phone: (203) 708-5192    |
 /  860 Canal Street, Stamford, CT  06902   \  Fax: (203) 316-5150     \
\-----------------------------------------------------------------------/



More information about the Python-list mailing list