You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New changeset 44046fe by Victor Stinner (Dong-hee Na) in branch 'master': bpo-37804: Remove the deprecated method threading.Thread.isAlive() (GH-15225) 44046fe
The threading documentation for 3.9 still claims "While they are not listed below, the camelCase names used for some methods and functions in this module in the Python 2.x series are still supported by this module." It would be better to mention when isAlive was removed.
The threading documentation for 3.9 still claims "While they are not listed below, the camelCase names used for some methods and functions in this module in the Python 2.x series are still supported by this module." It would be better to mention when isAlive was removed.
Do you want to propose a PR for that?
I see still 4 camelCase methods in threading.Thread:
Activity
corona10 commentedon Aug 9, 2019
As we discussed https://bugs.python.org/issue35283.
Now is the time to remove Thread.isAlive.
If it is okay, I 'd like to work on this issue.
[-]Remove isAlive[/-][+]Remove Thread.isAlive[/+]vstinner commentedon Aug 12, 2019
Calling threading.isAlive() starts to emit a DeprecationWarning in Python 3.8. I'm ok to remove the alias in Python 3.9.
[-]Remove Thread.isAlive[/-][+]Remove Thread.isAlive in Python 3.8[/+][-]Remove Thread.isAlive in Python 3.8[/-][+]Remove Thread.isAlive in Python 3.9[/+]vstinner commentedon Aug 12, 2019
New changeset 44046fe by Victor Stinner (Dong-hee Na) in branch 'master':
bpo-37804: Remove the deprecated method threading.Thread.isAlive() (GH-15225)
44046fe
JelleZijlstra commentedon Apr 2, 2021
The threading documentation for 3.9 still claims "While they are not listed below, the camelCase names used for some methods and functions in this module in the Python 2.x series are still supported by this module." It would be better to mention when isAlive was removed.
The method is still used in some major libraries, like NLTK (https://github.com/nltk/nltk/blob/637af5380d6071517a5f0d224649e5c3560b5f91/nltk/inference/api.py#L536). Documenting the removal clearly in the threading docs would make it easier for developers to upgrade.
vstinner commentedon Apr 2, 2021
Do you want to propose a PR for that?
I see still 4 camelCase methods in threading.Thread:
JelleZijlstra commentedon Apr 2, 2021
Sure, I can submit a PR. While we're at it, we should probably also deprecate the setter/getter methods that you mention.
Here's what I propose doing:
If there's no objection, I'll open separate issues and PRs for these in a few days.
vstinner commentedon Apr 2, 2021
You can deprecate them. Please open a new issue for that, this one is closed and specific to Thread.isAlive.
vstinner commentedon Apr 12, 2021
New changeset 9825bdf by Jelle Zijlstra in branch 'master':
bpo-43723: Deprecate camelCase aliases from threading (GH-25174)
9825bdf