Re: [Pyparsing] Memory issues with 2.0.6
Brought to you by:
ptmcg
From: Martijn V. <m.v...@lu...> - 2015-11-24 17:13:10
|
Dear Paul and others, (Sorry for replying out of thread, I only just subscribed.) I can report the same problem with Pyparsing 2.0.6 on this grammar: https://github.com/mutalyzer/mutalyzer/blob/master/mutalyzer/grammar.py Memory usage continues to increase. best, Martijn > The problem is definitely in the "cosmetic-only" change to the > returned error message for MatchFirst and Or (which also manifests as > a Unicode error), and does not even require calling parseString, just > streamline(). Thanks for the test case Will, I can repro the problem > with it, but am trying to distill it down to a smaller case to add to > my unit tests, and to work with in fixing the bug. > > For now, impatient users can comment out line 2354 in pyparsing.py: > > self.errmsg = "Expected " + str(self) |