[New-bugs-announce] [issue30240] Add daemon keyword argument to Thread constructor

TaoQingyun report at bugs.python.org
Tue May 2 22:49:51 EDT 2017


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
severity: normal
status: open
title: Add daemon keyword argument to Thread constructor
type: behavior
versions: Python 3.7

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


More information about the New-bugs-announce mailing list