Re: basic threading question

2007-10-31 Thread [david]
[EMAIL PROTECTED] wrote: On Oct 30, 7:58 pm, bambam [EMAIL PROTECTED] wrote: Are function variables thread safe? def f(a): # whatever return float(a) Is that OK? def f(a): #whatever b=a: #whatever: return float(b) Is that OK? Steve. Huh? If I have 37

Re: basic threading question

2007-10-31 Thread Bryan Olson
[david] wrote: If I have 37 threads, all calling a large function 'f', are the formal parameters thread safe? That is, will the formal parameters be trashed? Do you need to use locks or semaphores before using formal parameters? Are the labels for formal parameters static? If I have

Re: basic threading question

2007-10-31 Thread [david]
thanx :~) -- http://mail.python.org/mailman/listinfo/python-list

basic threading question

2007-10-30 Thread bambam
Are function variables thread safe? def f(a): # whatever return float(a) Is that OK? def f(a): #whatever b=a: #whatever: return float(b) Is that OK? Steve. -- http://mail.python.org/mailman/listinfo/python-list

Re: basic threading question

2007-10-30 Thread chris . monsanto
On Oct 30, 7:58 pm, bambam [EMAIL PROTECTED] wrote: Are function variables thread safe? def f(a): # whatever return float(a) Is that OK? def f(a): #whatever b=a: #whatever: return float(b) Is that OK? Steve. Huh? --