Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a4a8b820
Commit
a4a8b820
authored
Jul 15, 2005
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug [ 1238170 ] threading.Thread uses {} as default argument
parent
8bfa8935
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Lib/threading.py
Lib/threading.py
+3
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/threading.py
View file @
a4a8b820
...
...
@@ -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
...
...
Misc/NEWS
View file @
a4a8b820
...
...
@@ -168,6 +168,9 @@ Extension Modules
Library
-------
-
Bug
#
1238170
:
threading
.
Thread
.
__init__
no
longer
has
"kwargs={}"
as
a
parameter
,
but
uses
the
usual
"kwargs=None"
.
-
textwrap
now
processes
text
chucks
at
O
(
n
)
speed
instead
of
O
(
n
**
2
).
Patch
#
1209527
(
Contributed
by
Connelly
).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment