diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-08-18 18:16:46 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-08-18 18:16:46 (GMT) |
commit | 6640d7262874520ad405173c0f2d4b48b1837a8d (patch) | |
tree | f533ed80547484e33c63861bb94cda71c08e8772 | |
parent | 727537077043bb03a0c9e537cacbb9e695f7f4a8 (diff) | |
download | cpython-6640d7262874520ad405173c0f2d4b48b1837a8d.zip cpython-6640d7262874520ad405173c0f2d4b48b1837a8d.tar.gz cpython-6640d7262874520ad405173c0f2d4b48b1837a8d.tar.bz2 |
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
........
-rw-r--r-- | Lib/threading.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index cf0e12f..9416f80 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -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): |