From b2d9fb98d6b54c3101e9463ee9c93403f0471684 Mon Sep 17 00:00:00 2001 From: Paul McGuire Date: Wed, 24 Jul 2019 20:24:08 -0500 Subject: Prep for 2.4.1.1 fixup release --- CHANGES | 46 ++++++++++++++++++++++++++++++++++++++++++++++ pyparsing.py | 4 ++-- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 96bab04..397af9c 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,52 @@ Change Log ========== +Version 2.4.1.1 - July 24, 2019 +------------------------------- +This is a re-release of version 2.4.1 to restore the release history +in PyPI, since the 2.4.1 release was deleted. + +There are 3 known issues in this release, which are fixed in +the upcoming 2.4.2: + +- API change adding support for `expr[...]` - the original + code in 2.4.1 incorrectly implemented this as OneOrMore. + Code using this feature under this relase should explicitly + use `expr[0, ...]` for ZeroOrMore and `expr[1, ...]` for + OneOrMore. In 2.4.2 you will be able to write `expr[...]` + equivalent to `ZeroOrMore(expr)`. + +- Bug if composing And, Or, MatchFirst, or Each expressions + using an expression. This only affects code which uses + explicit expression construction using the And, Or, etc. + classes instead of using overloaded operators '+', '^', and + so on. If constructing an And using a single expression, + you may get an error that "cannot multiply ParserElement by + 0 or (0, 0)" or a Python `IndexError`. Change code like + + cmd = Or(Word(alphas)) + + to + + cmd = Or([Word(alphas)]) + + (Note that this is not the recommended style for constructing + Or expressions.) + +- Some newly-added `__diag__` switches are enabled by default, + which may give rise to noisy user warnings for existing parsers. + You can disable them using: + + import pyparsing as pp + pp.__diag__.warn_multiple_tokens_in_named_alternation = False + pp.__diag__.warn_ungrouped_named_tokens_in_collection = False + pp.__diag__.warn_name_set_on_empty_Forward = False + pp.__diag__.warn_on_multiple_string_args_to_oneof = False + pp.__diag__.enable_debug_on_named_expressions = False + + In 2.4.2 these will all be set to False by default. + + Version 2.4.1 - July, 2019 -------------------------- - NOTE: Deprecated functions and features that will be dropped diff --git a/pyparsing.py b/pyparsing.py index af0cff0..fb277fd 100644 --- a/pyparsing.py +++ b/pyparsing.py @@ -95,8 +95,8 @@ classes inherit from. Use the docstrings for examples of how to: namespace class """ -__version__ = "2.4.1" -__versionTime__ = "20 Jul 2019 18:17 UTC" +__version__ = "2.4.1.1" +__versionTime__ = "25 Jul 2019 01:03 UTC" __author__ = "Paul McGuire " import string -- cgit v1.2.1