bpo-25821: Fix inaccuracy in threading.enumerate/is_alive documentation (#23192)

This commit is contained in:
Irit Katriel 2021-05-11 18:55:24 +01:00 committed by GitHub
parent b05955d6f5
commit 12e7d10dfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View file

@ -1130,8 +1130,8 @@ class Thread:
"""Return whether the thread is alive.
This method returns True just before the run() method starts until just
after the run() method terminates. The module function enumerate()
returns a list of all alive threads.
after the run() method terminates. See also the module function
enumerate().
"""
assert self._initialized, "Thread.__init__() not called"