I am using Python 2.7. I want to create an instance of an object, and call a method within it in a separate process. Something like this:
import subprocesss
class A
def doAwork(self, text):
print text
class B
def doBWork
aInst = A()
subprocess(A.dowork("called from doBwork"))
Can this be done, or, do I need to turn around and call python as a subprocesss?
Edit: I can not use threads for this. The method called in aInst in reality loads a non-thread safe dll.
Thanks