pyparsing v2.0.6 Release Notes

Release Date: 2015-11-01 // over 8 years ago
    • ๐Ÿ›  Fixed a bug in Each when multiple Optional elements are present. Thanks for reporting this, whereswalden on SO.

    • ๐Ÿ›  Fixed another bug in Each, when Optional elements have results names or parse actions, reported by Max Rothman - thank you, Max!

    • โž• Added optional parseAll argument to runTests, whether tests should require the entire input string to be parsed or not (similar to parseAll argument to parseString). Plus a little neaten-up of the output on Python 2 (no stray ()'s).

    • ๐Ÿ‘ป Modified exception messages from MatchFirst and Or expressions. These were formerly misleading as they would only give the first or longest exception mismatch error message. Now the error message includes all the alternatives that were possible matches. Originally proposed by a pyparsing user, but I've lost the email thread - finally figured out a fairly clean way to do this.

    • ๐Ÿ›  Fixed a bug in Or, when a parse action on an alternative raises an exception, other potentially matching alternatives were not always tried. Reported by TheVeryOmni on the pyparsing wiki, thanks!

    • ๐Ÿ›  Fixed a bug to dump() introduced in 2.0.4, where list values were shown in duplicate.