diff options
author | Georg Brandl <georg@python.org> | 2005-07-15 09:13:21 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-07-15 09:13:21 +0000 |
commit | 6fe467c15d15a92fdc843af688363a96060a3554 (patch) | |
tree | 0a738ac5057ec81acd2d7595b3016d7af50e029d /Lib/threading.py | |
parent | d4dab8958c64a12d5d58e55543dc41cf64bd5057 (diff) | |
download | cpython-6fe467c15d15a92fdc843af688363a96060a3554.tar.gz |
bug [ 1238170 ] threading.Thread uses {} as default argument
Diffstat (limited to 'Lib/threading.py')
-rw-r--r-- | Lib/threading.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index cbcc1f91b2..fe4490fa3a 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -374,9 +374,11 @@ class Thread(_Verbose): __exc_info = _sys.exc_info def __init__(self, group=None, target=None, name=None, - args=(), kwargs={}, verbose=None): + args=(), kwargs=None, verbose=None): assert group is None, "group argument must be None for now" _Verbose.__init__(self, verbose) + if kwargs is None: + kwargs = {} self.__target = target self.__name = str(name or _newname()) self.__args = args |