From: Paul W. <re...@bu...> - 2013-03-23 18:19:58
|
New submission from Paul Woolcock: Summary: In the CPython docs for the `threading` module, it lists this interface as the "old" interface: >>> Thread().setDaemon() >>> Thread().isDaemon() True|False and this is the "new" interface: >>> Thread().daemon = True|False >>> Thread().daemon True|False In Jython 2.7b1, using the "new" interface does not seem to actually daemonize the thread. Programs that use the "new" interface require a Ctrl-C to exit, as the threads are still foreground threads when the program finishes. I have uploaded a simple example. I brought this up in #jython, and <agronholm> suggested that it was probably just an oversight, and that I should file a bug for it. ---------- files: test.py messages: 7968 nosy: untothebreach severity: normal status: open title: threading -- `thread.daemon = True` doesn't work as expected type: behaviour versions: Jython 2.7 Added file: http://bugs.jython.org/file1336/test.py _______________________________________ Jython tracker <re...@bu...> <http://bugs.jython.org/issue2031> _______________________________________ |