using threading module
Aahz Maruch
aahz at netcom.com
Fri Jul 14 23:08:47 EDT 2000
In article <396fd2ff.3598724 at news.prodigy.net>,
Victor Muslin <victor at prodigy.net> wrote:
>
>I tried using the threading module with the following simple program:
>
> #!/usr/bin/python
>
> from threading import *
>
> reps = 10
>
> def f1(msg='xxx'):
> for i in range(0, reps):
> print 'f1', msg, i
>
> t1 = Thread(target=f1,args=('bar'))
> t1.start()
Try
t1 = Thread(target=f1,args=('bar',))
Note the extra comma.
--
--- Aahz (Copyright 2000 by aahz at netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
"Let's go home and turn on MTV. I want to watch some Pop-Up Videos."
"Pop-Up Videos is not on MTV, it's on VH-1."
"'MTV' is a generic."
More information about the Python-list
mailing list