How could I ask Thread B to call B().Method() from inside Thread A's run?

could ildg at
Wed Nov 30 12:11:16 CET 2005

I have 2 thead instances,
A and B,
In A's run method, if I call B.Method(), it will be executed in thead A,
but I want B.Method() to be executed in B's thread.
That's to say, I want to tell Thead B to do B's stuff in B's thread,
kinda like PostMessage in win32.
Can I do it in python?
Thank you in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list