[issue6064] Add "daemon" argument to threading.Thread constructor

Miki Tebeka report at bugs.python.org
Tue May 19 21:14:01 CEST 2009


New submission from Miki Tebeka <miki.tebeka at gmail.com>:

It would be nice if threading.Thread constructor will have a "daemon"
argument as well.

This way we'll be able to write
    Thread(target=some_function, daemon=1).start()

Instead of currently writing
    t = Thread(target=some_function)
    t.daemon = True
    t.start()

----------
components: Library (Lib)
messages: 88088
nosy: tebeka
severity: normal
status: open
title: Add "daemon" argument to threading.Thread constructor
type: feature request
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6064>
_______________________________________


More information about the Python-bugs-list mailing list