summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul McGuire <ptmcg@austin.rr.com>2015-11-25 15:07:45 +0000
committerPaul McGuire <ptmcg@austin.rr.com>2015-11-25 15:07:45 +0000
commit30e376729d795149fd9ddfb90cceda4fadf71f1e (patch)
tree77f97157bc160e2b783adcb56cd7f1660ee8f1b2 /src
parent2c4ce3008257d2b5b4ff796e1508143534aabc02 (diff)
downloadpyparsing-git-30e376729d795149fd9ddfb90cceda4fadf71f1e.tar.gz
Simplified string representation of Forward, to avoid memory and performance issues during streamlining
Diffstat (limited to 'src')
-rw-r--r--src/CHANGES6
-rw-r--r--src/pyparsing.py6
2 files changed, 10 insertions, 2 deletions
diff --git a/src/CHANGES b/src/CHANGES
index 2536be0..6fd73dd 100644
--- a/src/CHANGES
+++ b/src/CHANGES
@@ -2,6 +2,12 @@
Change Log
==========
+Version 2.0.7 -
+---------------------------
+- Simplified string representation of Forward class, to avoid memory
+ and performance errors while building ParseException messages.
+
+
Version 2.0.6 -
---------------------------
- Fixed a bug in Each when multiple Optional elements are present.
diff --git a/src/pyparsing.py b/src/pyparsing.py
index 3e02dbe..186bc45 100644
--- a/src/pyparsing.py
+++ b/src/pyparsing.py
@@ -57,8 +57,8 @@ The pyparsing module handles some of the problems that are typically vexing when
- embedded comments
"""
-__version__ = "2.0.6"
-__versionTime__ = "9 Nov 2015 19:03"
+__version__ = "2.0.7"
+__versionTime__ = "25 Nov 2015 09:02"
__author__ = "Paul McGuire <ptmcg@users.sourceforge.net>"
import string
@@ -2998,7 +2998,9 @@ class Forward(ParseElementEnhance):
def __str__( self ):
if hasattr(self,"name"):
return self.name
+ return self.__class__.__name__ + ": ..."
+ # stubbed out for now - creates awful memory and perf issues
self._revertClass = self.__class__
self.__class__ = _ForwardNoRecurse
try: