pyparsing listAllMatches problem

don pasquale don.pasquale at blabla_tzimeil.com
Sat Sep 9 19:15:17 EDT 2006


On Sat, 09 Sep 2006 20:46:29 +0300, Paul McGuire  
<ptmcg at austin.rr._bogus_.com> wrote:
> Thanks for posting this test case.  This is a bug in pyparsing.  I'll  
> have a
> fix ready shortly.
>
> -- Paul

Ur welcome, I hope you find the bug and squash it :). I temporalily solved  
my problem (in case anyone else has it) by changing another definition and  
including a second call to setResultsName.

I modified the Goal definition from
Goal = Dict(Group( relation_name + relation_body ))
to
Goal = Dict(Group( relation_name + relation_body  
)).setResultsName("glist",listAllMatches=True)

if an extra .setResultsName("glist",listAllMatches=True) is added, then  
both calls to setResultsName (in Goal and Comparison_Predicate) suddenly  
work as planned! weird huh? I don't think this generally works, but it's  
worth a try until the bug is fixed...

-- 
Χρησιμοποιώ κάποια δόση υπερβολής...



More information about the Python-list mailing list