cpython/Misc/NEWS.d/next/Library/2021-04-03-18-03-44.bpo-437...

20 lines
564 B
ReStructuredText

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.