This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: threading.Thread uses {} as default argument
Type: Stage:
Components: Interpreter Core Versions: Python 2.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: georg.brandl Nosy List: georg.brandl, georg.brandl, rhettinger, sdahlbac
Priority: normal Keywords:

Created on 2005-07-14 12:37 by sdahlbac, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg25808 - (view) Author: Simon Dahlbacka (sdahlbac) Date: 2005-07-14 12:37
threading.Thread.__init__ uses {} as default argument
for kwargs,
shouldn't this be the usual
def __init__(...,kwargs=None,...)
....if kwargs is None:
........kwargs = {}

In normal cases, this is probably not a problem but it
makes it possible to f*ck things up.
msg25809 - (view) Author: Raymond Hettinger (rhettinger) * (Python committer) Date: 2005-07-15 08:57
Logged In: YES 
user_id=80475

This seems reasonable to me.

Reinhold, would you like to do the honors (2.5 only)?
msg25810 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-07-15 09:13
Logged In: YES 
user_id=1188172

Committed as Lib/threading.py r1.49.
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42188
2005-07-14 12:37:17sdahlbaccreate