[pypy-svn] r24289 - pypy/dist/pypy/lib/logic/computation_space

auc at codespeak.net auc at codespeak.net
Mon Mar 13 13:50:11 CET 2006


Author: auc
Date: Mon Mar 13 13:50:10 2006
New Revision: 24289

Modified:
   pypy/dist/pypy/lib/logic/computation_space/variable.py
Log:
cleanup


Modified: pypy/dist/pypy/lib/logic/computation_space/variable.py
==============================================================================
--- pypy/dist/pypy/lib/logic/computation_space/variable.py	(original)
+++ pypy/dist/pypy/lib/logic/computation_space/variable.py	Mon Mar 13 13:50:10 2006
@@ -66,9 +66,6 @@
         self.val = val
 
     def get(self):
-        """Make threads wait on the variable
-           being bound in the top-level space
-        """
         try:
             self._value_condition.acquire()
             while not self.is_bound():
@@ -80,21 +77,6 @@
             return self.val
         finally:
             self._value_condition.release()
-
-
-    def reset(self):
-        self._value_condition.acquire()
-        self._val = NoValue
-        self._value_condition.release()
-
-
-class StreamVar(object):
-    def __init__(self):
-        self.var = SimpleVar()
-
-    def bind( self, val ):
-        newvar = SimpleVar()
-        self.var.bind( (val, newvar) )
         
 
 class CsVar(SimpleVar):



More information about the Pypy-commit mailing list