mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
bring back the old API
This commit is contained in:
parent
a9b2222de4
commit
d810626f99
1 changed files with 12 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue