using threading module
Victor Muslin
victor at prodigy.net
Fri Jul 14 23:19:06 EDT 2000
Ok, that worked. What gives? The documentation does not make this clear.
On 15 Jul 2000 03:08:47 GMT, aahz at netcom.com (Aahz Maruch) wrote:
>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