mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
bug [ 1238170 ] threading.Thread uses {} as default argument
This commit is contained in:
parent
8bfa8935ea
commit
a4a8b820aa
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue