[python-win32] Threading Issue
James Matthews
nytrokiss at gmail.com
Tue Jul 3 23:21:34 CEST 2007
Ok i have resolved the issue thank you!
James
On 7/3/07, Tim Roberts <timr at probo.com> wrote:
>
> James Matthews wrote:
> > So i need to make the list a global variable
>
> No, that's not what he did at all. The names just happened to be the
> same, that's all. Consider it this way:
>
> import threading
> def foo( threadresult ):
> threadresult.extend( range(4) )
>
> result = list()
> thread = threading.Thread(target=foo, args=(result,))
> thread.start()
> result
>
> --
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> Python-win32 mailing list
> Python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
--
http://www.goldwatches.com/watches.asp?Brand=14
http://www.jewelerslounge.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20070703/d5df7136/attachment.html
More information about the Python-win32
mailing list