Le Fri, 30 Aug 2013 11:36:57 +0200, Victor Stinner <victor.stin...@gmail.com> a écrit : > > If we expose the identifier of the main thread, something should be > added to the threading module, not the signal module.
Agreed. > Is it possible that the main thread exit while there are still other > live threads? "exit" in what sense? In the C sense, no: when the main C thread exits, the whole process is terminated (this is how our "daemon threads" work). In the Python sense, yes: we have a test for it: http://hg.python.org/cpython/file/c347b9063a9e/Lib/test/test_threading.py#l325 Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com