forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-43723: Deprecate camelCase aliases from threading (pythonGH-25174)
The snake_case names have existed since Python 2.6, so there is no reason to keep the old camelCase names around. One similar method, threading.Thread.isAlive, was already removed in Python 3.9 (bpo-37804).
- Loading branch information
1 parent
cc2ffcd
commit 9825bdf
Showing
7 changed files
with
159 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
Misc/NEWS.d/next/Library/2021-04-03-18-03-44.bpo-43723.uBhBZS.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
The following ``threading`` methods are now deprecated and should be replaced: | ||
|
||
- ``currentThread`` => :func:`threading.current_thread` | ||
|
||
- ``activeCount`` => :func:`threading.active_count` | ||
|
||
- ``Condition.notifyAll`` => :meth:`threading.Condition.notify_all` | ||
|
||
- ``Event.isSet`` => :meth:`threading.Event.is_set` | ||
|
||
- ``Thread.setName`` => :attr:`threading.Thread.name` | ||
|
||
- ``thread.getName`` => :attr:`threading.Thread.name` | ||
|
||
- ``Thread.isDaemon`` => :attr:`threading.Thread.daemon` | ||
|
||
- ``Thread.setDaemon`` => :attr:`threading.Thread.daemon` | ||
|
||
Patch by Jelle Zijlstra. |