[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2015-12-07 Thread Anthony Green
Anthony Green added the comment: The following example comes from IRC user ztane: > import threading, time > > main_thread = threading.current_thread() > > def foo(): > time.sleep(10) > print(main_thread.is_alive()) > print(list(threading.enumerate())) &

[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2015-12-07 Thread Anthony Green
New submission from Anthony Green: The documentation at https://docs.python.org/3/library/threading.html#threading.Thread.is_alive relates: > The module function enumerate() returns a list of all alive threads. The documentation at https://docs.python.org/3/library/threading.h

[issue25821] Documentation for threading.enumerate / threading.Thread.is_alive is contradictory.

2015-12-07 Thread Anthony Green
Changes by Anthony Green : -- assignee: docs@python components: Documentation nosy: anthonygreen, docs@python, pitrou priority: normal severity: normal status: open title: Documentation for threading.enumerate / threading.Thread.is_alive is contradictory. versions: Python 2.7, Python