diff options
author | Charlie Zhao <68189100+CharlieZhao95@users.noreply.github.com> | 2022-02-26 04:17:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 04:17:13 (GMT) |
commit | e466faa9df9a1bd377d9725de5484471bc4af8d0 (patch) | |
tree | fc1e208390aab53f622971b10c8799bc4159ef1c /Lib/threading.py | |
parent | 5ab745fc51e159ead28b523414e52f0bcc1ef353 (diff) | |
download | cpython-e466faa9df9a1bd377d9725de5484471bc4af8d0.zip cpython-e466faa9df9a1bd377d9725de5484471bc4af8d0.tar.gz cpython-e466faa9df9a1bd377d9725de5484471bc4af8d0.tar.bz2 |
bpo-45735: Promise the long-time truth that `args=list` works (GH-30982)
For threads, and for multiprocessing, it's always been the case that ``args=list`` works fine when passed to ``Process()`` or ``Thread()``, and such code is common in the wild. But, according to the docs, only a tuple can be used. This brings the docs into synch with reality.
Doc changes by Charlie Zhao.
Co-authored-by: Tim Peters <tim.peters@gmail.com>
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 6068d06..642f93e 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -852,7 +852,7 @@ class Thread: *name* is the thread name. By default, a unique name is constructed of the form "Thread-N" where N is a small decimal number. - *args* is the argument tuple for the target invocation. Defaults to (). + *args* is a list or tuple of arguments for the target invocation. Defaults to (). *kwargs* is a dictionary of keyword arguments for the target invocation. Defaults to {}. |