Kaydet (Commit) d810626f authored tarafından Benjamin Peterson's avatar Benjamin Peterson

bring back the old API

üst a9b2222d
......@@ -683,6 +683,18 @@ class Thread(_Verbose):
raise RuntimeError("cannot set daemon status of active thread");
self.__daemonic = daemonic
def isDaemon(self):
return self.daemon
def setDaemon(self, daemonic):
self.daemon = daemonic
def getName(self):
return self.name
def setName(self, name):
self.name = name
# The timer class was contributed by Itamar Shtull-Trauring
def Timer(*args, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment