summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2019-07-24 20:24:08 -0500
committerPaul McGuire <ptmcg@austin.rr.com>2019-07-24 20:24:08 -0500
commitb2d9fb98d6b54c3101e9463ee9c93403f0471684 (patch)
treee2ffd37463885e045153a676970fc7a907a1455c
parent07d82bb767d75a0a30bd6f806938c1f9fe50d8ee (diff)
downloadpyparsing-git-pyparsing_2.4.1.x.tar.gz
Prep for 2.4.1.1 fixup releasepyparsing_2.4.1.x
-rw-r--r--CHANGES46
-rw-r--r--pyparsing.py4
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 <ptmcg@users.sourceforge.net>"
import string