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 /Misc | |
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 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2021-04-03-18-03-44.bpo-43723.uBhBZS.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-04-03-18-03-44.bpo-43723.uBhBZS.rst b/Misc/NEWS.d/next/Library/2021-04-03-18-03-44.bpo-43723.uBhBZS.rst new file mode 100644 index 0000000..27cf7aa --- /dev/null +++ b/Misc/NEWS.d/next/Library/2021-04-03-18-03-44.bpo-43723.uBhBZS.rst @@ -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. |