W3C home > Mailing lists > Public > public-cwm-talk@w3.org > July to September 2005

Re: file version to demonstrate flakiness bug in Pychinko with no bNodes at all:

From: Yosi Scharf <syosi@MIT.EDU>
Date: Thu, 25 Aug 2005 16:37:54 -0400
Message-ID: <430E2C22.4090102@mit.edu>
To: Yarden Katz <yarden@umd.edu>
CC: public-cwm-talk@w3.org

Yarden Katz wrote:

>
>Hey,
>
>  Good eye - this is a bug that we had in an older version that was
>  accidently reintroduced.  It is easy to fix -- I will update SVN
>  soon.
>
>Thanks a lot.  
>  
>
This looks like the fix to me. I hope it's useful.

syosi@mr-burns:~/pychinko/pychinko$ svn diff nodes.py
Index: nodes.py
===================================================================
--- nodes.py    (revision 4613)
+++ nodes.py    (working copy)
@@ -187,7 +187,7 @@
             if isinstance(self.lnode, AlphaNode):
                 key = removedups(self.lnode.svars + self.lnode.vars +
self.rnode.vars)
             elif isinstance(self.lnode, BetaNode):
-                key = self.pattern
+                key = removedups(self.lnode.pattern + self.rnode.vars)
         for i, v in enumerate(key):
             bindings[v] = row[i]
         return bindings


-----------------------------------------

Yosi
Received on Thursday, 25 August 2005 20:38:08 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:11:02 GMT