[issue17208] add note/warning about daemon threads

2013-02-15 Thread Antoine Pitrou

New submission from Antoine Pitrou:

People are generally not aware of the properties of daemon threads.
I suggest to add a note such as the following:

« Daemon threads are abruptly stopped at shutdown. Their resources (such as 
open files, database transactions, etc.) may not be released properly. If you 
want your threads to stop gracefully, make them non-daemonic and use a suitable 
signalling mechanism such as an Event. »

--
assignee: docs@python
components: Documentation
messages: 182133
nosy: docs@python, pitrou, sbt
priority: normal
severity: normal
status: open
title: add note/warning about daemon threads
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17208
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Tim Golden

Tim Golden added the comment:

+1 This is essentially the answer to the naive user's question:

Why would anyone *not* use daemon threads given that they're less
hassle to manage?

--
nosy: +tim.golden

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17208
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e63c4bc81d9f by Antoine Pitrou in branch '2.7':
Issue #17208: add a note about the termination behaviour of daemon threads.
http://hg.python.org/cpython/rev/e63c4bc81d9f

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17208
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8753a3be4a3c by Antoine Pitrou in branch '3.2':
Issue #17208: add a note about the termination behaviour of daemon threads.
http://hg.python.org/cpython/rev/8753a3be4a3c

New changeset 917ae89e59ce by Antoine Pitrou in branch '3.3':
Issue #17208: add a note about the termination behaviour of daemon threads.
http://hg.python.org/cpython/rev/917ae89e59ce

New changeset 8b85f10b5341 by Antoine Pitrou in branch 'default':
Issue #17208: add a note about the termination behaviour of daemon threads.
http://hg.python.org/cpython/rev/8b85f10b5341

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17208
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17208] add note/warning about daemon threads

2013-02-15 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Committed.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17208
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com