The doc string for setDaemon() disagreed with the implementation. The

implementation wins.
This commit is contained in:
Guido van Rossum 1998-08-07 19:15:20 +00:00
parent 66da9d69fc
commit 449fdf1d76

View file

@ -590,8 +590,8 @@ class Thread:
def isDaemon(self):
"""Return the thread's daemon flag."""
def setDaemon(self):
"""Set the thread's daemon flag.
def setDaemon(self, daemonic):
"""Set the thread's daemon flag (a Boolean).
This must be called before start() is called.