[issue30240] Add daemon keyword argument to Thread constructor

2017-05-02 Thread Zachary Ware
Zachary Ware added the comment: It's already there: https://docs.python.org/3/library/threading.html#threading.Thread -- nosy: +zach.ware resolution: -> out of date stage: -> resolved status: open -> closed versions: -Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 __

[issue30240] Add daemon keyword argument to Thread constructor

2017-05-02 Thread TaoQingyun
Changes by TaoQingyun <845767...@qq.com>: -- versions: +Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker ___

[issue30240] Add daemon keyword argument to Thread constructor

2017-05-02 Thread TaoQingyun
New submission from TaoQingyun: 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() ``` -- components: Library (Lib) messages: 292832 nosy: qingyunha priority: normal s