if I have this type of program level function
def returnInt(s): return int(float(s)) and it ended up being called by 2 separate threads at the same time would it be "thread safe" or do I need to add as a function in both thread classes e.g
class StepperControl(threading.Thread): .... def returnInt(self,s): return int(float(self.s)) .... class BounceControl(threading.Thread): .... def returnInt(self,s): return int(float(self.s)) .... Simon
self.s. If you want it to returnself.blaors = "bla"you'd need to usegetattr(self, s)instead.