-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
bpo-43723: deprecate camelCase aliases from threading #25174
Changes from 3 commits
558e66b
1af898e
a76261a
b32c41e
be7c522
8fac027
aeae847
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,10 @@ | ||||||||||||||||||||||||||||||||||||||||||||||
The following `threading` methods are now deprecated and should be replaced: | ||||||||||||||||||||||||||||||||||||||||||||||
`threading.currentThread` => :func:`threading.current_thread`; | ||||||||||||||||||||||||||||||||||||||||||||||
`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`. | ||||||||||||||||||||||||||||||||||||||||||||||
Patch by Jelle Zijlstra. | ||||||||||||||||||||||||||||||||||||||||||||||
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.
Suggested change
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. I had to do it a little differently to get the markup working and work around python/core-workflow#394. 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.
If you put each item on a long line, you should not be affected by https://github.com/python/core-workflow/issues/394 no? 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. blurb reflows the lines to make them fit into 76 characters, so I have to make each line fit into 76 characters to avoid the bug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to say "deprecated" somewhere, rather than "still supported".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reworded