This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add daemon keyword argument to Thread constructor
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: qingyunha, zach.ware
Priority: normal Keywords:

Created on 2017-05-03 02:49 by qingyunha, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg292832 - (view) Author: TaoQingyun (qingyunha) * Date: 2017-05-03 02:49
create a daemon thread like this,  
```
t = Thread(target=f)
t.daemon = True
t.start()
```

I wonder the following code is better
```
Thread(target=f, daemon=True).start()
```
msg292833 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2017-05-03 02:59
It's already there: https://docs.python.org/3/library/threading.html#threading.Thread
History
Date User Action Args
2022-04-11 14:58:46adminsetgithub: 74426
2017-05-03 02:59:17zach.waresetstatus: open -> closed

versions: - Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
nosy: + zach.ware

messages: + msg292833
resolution: out of date
stage: resolved
2017-05-03 02:54:59qingyunhasetversions: + Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6
2017-05-03 02:49:51qingyunhacreate