git » pymisc » commit 5eb37cd

Fix getattr for lazy and dataflow objects.

author Alberto Bertogli
2006-09-26 06:05:54 UTC
committer Alberto Bertogli
2006-09-26 06:05:54 UTC
parent e0f34b2b3817454b7fef6f3985115960c571b0e1

Fix getattr for lazy and dataflow objects.

dataflow.py +1 -1
lazy.py +1 -1

diff --git a/dataflow.py b/dataflow.py
index fe2c553..875e94f 100644
--- a/dataflow.py
+++ b/dataflow.py
@@ -63,7 +63,7 @@ class _DFWrapper:
 		if self.__dict__['_override']:
 			return self.__dict__[name]
 		self._wait()
-		return getattr(self._value, name)
+		return self._value.__getattribute__(name)
 
 	def __setattr__(self, name, val):
 		if name == '_override' or self._override:
diff --git a/lazy.py b/lazy.py
index b0d6c59..3679980 100644
--- a/lazy.py
+++ b/lazy.py
@@ -34,7 +34,7 @@ class _LazyWrapper:
 		if self.__dict__['_override']:
 			return self.__dict__[name]
 		self._checkset()
-		return getattr(self._value, name)
+		return self._value.__getattribute__(name)
 
 	def __setattr__(self, name, val):
 		if name == '_override' or self._override: