[ python-Bugs-1238170 ] threading.Thread uses {} as default argument

SourceForge.net noreply at sourceforge.net
Fri Jul 15 10:57:24 CEST 2005


Bugs item #1238170, was opened at 2005-07-14 07:37
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1238170&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Threads
>Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Dahlbacka (sdahlbac)
>Assigned to: Reinhold Birkenfeld (birkenfeld)
Summary: threading.Thread uses {} as default argument

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2005-07-15 03:57

Message:
Logged In: YES 
user_id=80475

This seems reasonable to me.

Reinhold, would you like to do the honors (2.5 only)?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1238170&group_id=5470


More information about the Python-bugs-list mailing list