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

auc at codespeak.net auc at codespeak.net
Wed Mar 1 15:38:10 CET 2006


Author: auc
Date: Wed Mar  1 15:38:07 2006
New Revision: 23830

Added:
   pypy/dist/pypy/lib/logic/computation_space/event.py
Log:
new event types to trigger propagation


Added: pypy/dist/pypy/lib/logic/computation_space/event.py
==============================================================================
--- (empty file)
+++ pypy/dist/pypy/lib/logic/computation_space/event.py	Wed Mar  1 15:38:07 2006
@@ -0,0 +1,14 @@
+class NewSpace: pass
+
+class Clone: pass
+
+class Revise(object):
+
+    def __init__(self, var):
+        self.var = var
+
+    def __eq__(self, other):
+        if not isinstance(other, Distributed): return False
+        return self.var == other.var
+
+    



More information about the Pypy-commit mailing list