STINNER Victor <victor.stin...@haypocalc.com> added the comment: > However, I don't think we should/could add this to the posix module: > it expects a pthread_t instead of a PID, to which we don't have access.
We already have such function: http://docs.python.org/dev/library/signal.html#signal.pthread_kill I added threading.get_ident() to easily get the thread identifier. In Python < 3.3, you can use threading.current_thread().ident. It's not documented, but if you pass a random integer, signal.pthread_kill() does crash. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12936> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com