Message7968

Author untothebreach
Recipients untothebreach
Date 2013-03-23.18:19:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1364062790.84.0.732565239409.issue2031@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-03-23 18:19:50untothebreachsetrecipients: + untothebreach
2013-03-23 18:19:50untothebreachsetmessageid: <1364062790.84.0.732565239409.issue2031@psf.upfronthosting.co.za>
2013-03-23 18:19:50untothebreachlinkissue2031 messages
2013-03-23 18:19:50untothebreachcreate