[docs] [issue13077] Unclear behavior of daemon threads on main thread exit

etuardu report at bugs.python.org
Fri Sep 30 17:30:42 CEST 2011


New submission from etuardu <edonan at gmail.com>:

The definition of daemon thread in the current documentation reads:

«A thread can be flagged as a "daemon thread". The significance of this flag is that the entire Python program exits when only daemon threads are left. [...]»
(http://docs.python.org/library/threading.html#thread-objects)

I think it's not very clear from this that daemon threads themselves terminate when the program (main thread plus other non-daemon threads) terminates. I think this have to be said more explicitly. I'd propose a change with something like:

«A thread can be flagged as a "daemon thread", which means it will get shut down when the overall program terminates. The entire Python program exits when only daemon threads are left.»

----------
assignee: docs at python
components: Documentation
messages: 144691
nosy: docs at python, etuardu
priority: normal
severity: normal
status: open
title: Unclear behavior of daemon threads on main thread exit
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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


More information about the docs mailing list