-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
bpo-43723: deprecate camelCase aliases from threading #25174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
558e66b
bpo-43723: deprecate camelCase aliases from threading
JelleZijlstra 1af898e
don't schedule removal, adjust docs
JelleZijlstra a76261a
update tests
JelleZijlstra b32c41e
more doc updates
JelleZijlstra be7c522
fix make check
JelleZijlstra 8fac027
reword more docs
JelleZijlstra aeae847
fix directives
JelleZijlstra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -1070,6 +1070,27 @@ Deprecated | |
``cache=shared`` query parameter. | ||
(Contributed by Erlend E. Aasland in :issue:`24464`.) | ||
|
||
* The following ``threading`` methods are now deprecated: | ||
|
||
* ``threading.currentThread`` => :func:`threading.current_thread` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It doesn't work without these empty lines? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's right, they all get mushed together into a single line |
||
* ``threading.activeCount`` => :func:`threading.active_count` | ||
|
||
* ``threading.Condition.notifyAll`` => | ||
:meth:`threading.Condition.notify_all` | ||
|
||
* ``threading.Event.isSet`` => :meth:`threading.Event.is_set` | ||
|
||
* ``threading.Thread.setName`` => :attr:`threading.Thread.name` | ||
|
||
* ``threading.thread.getName`` => :attr:`threading.Thread.name` | ||
|
||
* ``threading.Thread.isDaemon`` => :attr:`threading.Thread.daemon` | ||
|
||
* ``threading.Thread.setDaemon`` => :attr:`threading.Thread.daemon` | ||
|
||
(Contributed by Jelle Zijlstra in :issue:`21574`.) | ||
|
||
|
||
Removed | ||
======= | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.