Message7968
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. |
|
Date |
User |
Action |
Args |
2013-03-23 18:19:50 | untothebreach | set | recipients:
+ untothebreach |
2013-03-23 18:19:50 | untothebreach | set | messageid: <1364062790.84.0.732565239409.issue2031@psf.upfronthosting.co.za> |
2013-03-23 18:19:50 | untothebreach | link | issue2031 messages |
2013-03-23 18:19:50 | untothebreach | create | |
|