This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Add Thread.isActive()
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: alanvgreen, georg.brandl, sonderblade
Priority: normal Keywords: patch

Created on 2005-01-23 05:43 by alanvgreen, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
threading-alive-api.diff alanvgreen, 2005-01-23 05:43 patch to threading.py and libthreading.tex
Messages (3)
msg47596 - (view) Author: Alan Green (alanvgreen) Date: 2005-01-23 05:43
The documentation for threading.Thread states: 

"""Once the thread's activity is started, the thread is
considered 'alive' and 'active' (these concepts are
almost, but not quite exactly, the same; their
definition is intentionally somewhat vague). It stops
being alive and active when its run() method terminates
- either normally, or by raising an unhandled exception."""

This is confusing. There doesn't seem to be a need to
expose both 'alive' and 'active' concepts in the API. 

The confusion was reported as part of Issue 912943
"7.5.6 Thread Objects is too vague"

This patch:
- adds an isActive() method to Thread, that tests
whether the thread is active. 
- adds documentation for isActive()
- modifies the documentation for isAlive(), noting that
it is deprecated and explaining why.
msg47597 - (view) Author: Björn Lindqvist (sonderblade) Date: 2005-05-09 00:02
Logged In: YES 
user_id=51702

I'm confused. Wouldn't it be better to just keep the
isAlive() method instead of deprecating it and introducing
isActive() in its place? In that way you only have to change
the documentation and the API can remain intact.
msg47598 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-03-15 21:40
Superseded by patch #1680968.
History
Date User Action Args
2022-04-11 14:56:09adminsetgithub: 41476
2005-01-23 05:43:37alanvgreencreate