[Python-checkins] r65826 - python/trunk/Lib/threading.py

benjamin.peterson python-checkins at python.org
Mon Aug 18 20:13:18 CEST 2008


Author: benjamin.peterson
Date: Mon Aug 18 20:13:17 2008
New Revision: 65826

Log:
bring back the old API

Modified:
   python/trunk/Lib/threading.py

Modified: python/trunk/Lib/threading.py
==============================================================================
--- python/trunk/Lib/threading.py	(original)
+++ python/trunk/Lib/threading.py	Mon Aug 18 20:13:17 2008
@@ -683,6 +683,18 @@
             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):


More information about the Python-checkins mailing list