removed. They were deprecated since Python 3.7.
(Contributed by Victor Stinner in :issue:`37320`.)
+* The :meth:`~threading.Thread.isAlive()` method of :class:`threading.Thread`
+ has been removed. It was deprecated since Python 3.8.
+ Use :meth:`~threading.Thread.is_alive()` instead.
+ (Contributed by Dong-hee Na in :issue:`37804`.)
Porting to Python 3.9
=====================
self._wait_for_tstate_lock(False)
return not self._is_stopped
- def isAlive(self):
- """Return whether the thread is alive.
-
- This method is deprecated, use is_alive() instead.
- """
- import warnings
- warnings.warn('isAlive() is deprecated, use is_alive() instead',
- DeprecationWarning, stacklevel=2)
- return self.is_alive()
-
@property
def daemon(self):
"""A boolean value indicating whether this thread is a daemon thread.