[Twisted-Python] PATCH: setattr problem in ThreadAttr

Matthias Urlichs smurf at noris.de
Wed Nov 13 15:19:59 EST 2002


Hi,

Nobody seems to have used twisted.python.threadable.ThreadAttr recently..:

--- /usr/lib/python2.2/site-packages/twisted/python/threadable.py	2002-09-23 05:30:46.000000000 +0200
+++ twisted/python/threadable.py	2002-11-13 21:15:46.000000000 +0100
@@ -297,7 +297,7 @@
         return getattr(self.__get(), key)
 
     def __setattr__(self, key, val):
-        return setattr(self.__get(), key)
+        return setattr(self.__get(), key, val)
 
     def __delattr__(self, key):
         return delattr(self.__get(), key)

Disclaimer: I found this by looking at the code -- but I didn't test it
either.  :-/

-- 
Matthias Urlichs     |     noris network AG     |     http://smurf.noris.de/




More information about the Twisted-Python mailing list