I'm developing an application in Python which needs to send a one-way message to all threads (threading module in Python2) in an array, except the current thread. I have tried variables, but that would result in all threads responding to it instead of all but the sender.
What is the best way to send messages that way?
Why not make the "message" be a tuple of (thread_id, 'message'), and then send it to all threads - the thread that sent it can just ignore messages with its own thread_id.
Sending a one-way message with Python on all threads except the sender