Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(205167)

Unified Diff: Doc/library/threading.rst

Issue 17435: threading.Timer.__init__() should use immutable argument defaults for args and kwargs
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/test/test_threading.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Doc/library/threading.rst Wed Mar 13 02:27:53 2013 +0200
+++ b/Doc/library/threading.rst Fri Mar 15 19:58:29 2013 -0400
@@ -839,10 +839,12 @@
t.start() # after 30 seconds, "hello, world" will be printed
-.. class:: Timer(interval, function, args=[], kwargs={})
+.. class:: Timer(interval, function, args=None, kwargs=None)
Create a timer that will run *function* with arguments *args* and keyword
arguments *kwargs*, after *interval* seconds have passed.
+ If *args* is None (the default) then an empty list will be used.
+ If *kwargs* is None (the default) then an empty dict will be used.
.. versionchanged:: 3.3
changed from a factory function to a class.
« no previous file with comments | « no previous file | Lib/test/test_threading.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+