mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Merged revisions 65826 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r65826 | benjamin.peterson | 2008-08-18 13:13:17 -0500 (Mon, 18 Aug 2008) | 1 line bring back the old API ........
This commit is contained in:
parent
7275370770
commit
6640d72628
1 changed files with 12 additions and 0 deletions
|
@ -653,6 +653,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