Re: [python-win32] Threading Issue

2007-07-03 Thread James Matthews
Thanks On 7/3/07, Jim Vickroy <[EMAIL PROTECTED]> wrote: James Matthews wrote: Thanks Emlyn Just one more issue i have here. When i pass a string as an argument to the thread it seems to call the method returning the string as a tuple and i get an error that the method gets 48 arguments and

Re: [python-win32] Threading Issue

2007-07-03 Thread Jim Vickroy
James Matthews wrote: Thanks Emlyn Just one more issue i have here. When i pass a string as an argument to the thread it seems to call the method returning the string as a tuple and i get an error that the method gets 48 arguments and it can only accept 2? If this doesn't make sense here is

Re: [python-win32] Threading Issue

2007-07-03 Thread James Matthews
Thanks Emlyn Just one more issue i have here. When i pass a string as an argument to the thread it seems to call the method returning the string as a tuple and i get an error that the method gets 48 arguments and it can only accept 2? If this doesn't make sense here is the code. for links in ur

Re: [python-win32] Threading Issue

2007-07-03 Thread Emlyn Jones
On 7/3/07, Emlyn Jones <[EMAIL PROTECTED]> wrote: > On 7/3/07, Tim Roberts <[EMAIL PROTECTED]> 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

Re: [python-win32] Threading Issue

2007-07-03 Thread James Matthews
Ok i have resolved the issue thank you! James On 7/3/07, Tim Roberts <[EMAIL PROTECTED]> 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 threa

Re: [python-win32] Threading Issue

2007-07-03 Thread Tim Roberts
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() th

Re: [python-win32] Threading Issue

2007-07-03 Thread Jim Vickroy
James Matthews wrote: Dear List. When spawning a thread using the threading module syntax new_thread = threading.Thread(target=function_returning_a_list) How can i get the list that this function is supposed to return. Thanks James -- http://www.goldwatches.com/watches.asp?Brand=14 http://

Re: [python-win32] Threading Issue

2007-07-03 Thread Jim Vickroy
James Matthews wrote: So i need to make the list a global variable It could be but that is not necessary. The list is simply a variable known to the program unit that creates the threading.Thread(...) instance. On 7/3/07, *Jim Vickroy* <[EMAIL PROTECTED] > wrote:

Re: [python-win32] Threading Issue

2007-07-03 Thread James Matthews
So i need to make the list a global variable On 7/3/07, Jim Vickroy <[EMAIL PROTECTED]> wrote: James Matthews wrote: Dear List. When spawning a thread using the threading module syntax new_thread = threading.Thread(target=function_returning_a_list) How can i get the list that this function i

[python-win32] Threading Issue

2007-07-03 Thread James Matthews
Dear List. When spawning a thread using the threading module syntax new_thread = threading.Thread(target=function_returning_a_list) How can i get the list that this function is supposed to return. Thanks James -- http://www.goldwatches.com/watches.asp?Brand=14 http://www.jewelerslounge.com ___