diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2021-04-12 08:42:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 08:42:53 (GMT) |
commit | 9825bdfbd5c966abf1f1b7264992d722a94c9613 (patch) | |
tree | 393e11e62ed0c808010af578fbb0cb4afd00b0c6 /Doc/whatsnew | |
parent | cc2ffcdfd78df3a18edae60df81b2f1b044b1634 (diff) | |
download | cpython-9825bdfbd5c966abf1f1b7264992d722a94c9613.zip cpython-9825bdfbd5c966abf1f1b7264992d722a94c9613.tar.gz cpython-9825bdfbd5c966abf1f1b7264992d722a94c9613.tar.bz2 |
bpo-43723: Deprecate camelCase aliases from threading (GH-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).
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 9f6b7a4..85f229c 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -1129,6 +1129,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` + + * ``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 ======= |