Hello community, here is the log from the commit of package python3-pyparsing for openSUSE:Factory checked in at 2016-02-09 13:32:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-pyparsing (Old) and /work/SRC/openSUSE:Factory/.python3-pyparsing.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-pyparsing" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-pyparsing/python3-pyparsing.changes 2016-01-05 09:41:51.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-pyparsing.new/python3-pyparsing.changes 2016-02-09 13:33:07.000000000 +0100 @@ -1,0 +2,60 @@ +Mon Feb 8 05:02:08 UTC 2016 - [email protected] + +- specfile: + * update copyright year + +- update to version 2.1.0: + * Modified the internal _trim_arity method to distinguish between + TypeError's raised while trying to determine parse action arity + and those raised within the parse action itself. This will clear + up those confusing "<lambda>() takes exactly 1 argument (0 given)" + error messages when there is an actual TypeError in the body of + the parse action. Thanks to all who have raised this issue in the + past, and most recently to Michael Cohen, who sent in a proposed + patch, and got me to finally tackle this problem. + * Added compatibility for pickle protocols 2-4 when pickling + ParseResults. In Python 2.x, protocol 0 was the default, and + protocol 2 did not work. In Python 3.x, protocol 3 is the + default, so explicitly naming protocol 0 or 1 was required to + pickle ParseResults. With this release, all protocols 0-4 are + supported. Thanks for reporting this on StackOverflow, Arne + Wolframm, and for providing a nice simple test case! + * Added optional 'stopOn' argument to ZeroOrMore and OneOrMore, to + simplify breaking on stop tokens that would match the repetition + expression. + It is a common problem to fail to look ahead when matching + repetitive tokens if the sentinel at the end also matches the + repetition expression, as when parsing "BEGIN aaa bbb ccc END" + with: + + "BEGIN" + OneOrMore(Word(alphas)) + "END" + + Since "END" matches the repetition expression "Word(alphas)", it + will never get parsed as the terminating sentinel. Up until now, + this has to be resolved by the user inserting their own negative + lookahead: + + "BEGIN" + OneOrMore(~Literal("END") + Word(alphas)) + "END" + + Using stopOn, they can more easily write: + + "BEGIN" + OneOrMore(Word(alphas), stopOn="END") + "END" + + The stopOn argument can be a literal string or a pyparsing + expression. Inspired by a question by Lamakaha on StackOverflow + (and many previous questions with the same negative-lookahead + resolution). + * Added expression names for many internal and builtin expressions, + to reduce name and error message overhead during parsing. + * Converted helper lambdas to functions to refactor and add + docstring support. + * Fixed ParseResults.asDict() to correctly convert nested + ParseResults values to dicts. + * Cleaned up some examples, fixed typo in fourFn.py identified by + aristotle2600 on reddit. + * Removed keepOriginalText helper method, which was deprecated ages + ago. Superceded by originalTextFor. + * Same for the Upcase class, which was long ago deprecated and + replaced with the upcaseTokens method. + +------------------------------------------------------------------- Old: ---- pyparsing-2.0.7.tar.gz New: ---- pyparsing-2.1.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-pyparsing.spec ++++++ --- /var/tmp/diff_new_pack.InTe38/_old 2016-02-09 13:33:08.000000000 +0100 +++ /var/tmp/diff_new_pack.InTe38/_new 2016-02-09 13:33:08.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package python3-pyparsing # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python3-pyparsing -Version: 2.0.7 +Version: 2.1.0 Release: 0 Url: http://pyparsing.wikispaces.com/ Summary: Grammar Parser Library for Python ++++++ pyparsing-2.0.7.tar.gz -> pyparsing-2.1.0.tar.gz ++++++ ++++ 13498 lines of diff (skipped)
