pyparsing v4.7 Release Notes

Release Date: 2020-04-05 // about 2 years ago
  • ๐Ÿ”– Version 2.4.7 - April, 2020

    • ๐Ÿ›  Backport of selected fixes from 3.0.0 work:
      . Each bug with Regex expressions
      . And expressions not properly constructing with generator
      . Traceback abbreviation
      . Bug in delta_time example
      . Fix regexen in pyparsing_common.real and .sci_real
      โš  . Avoid FutureWarning on Python 3.7 or later
      โœ… . Cleanup output in runTests if comments are embedded in test string

Previous changes from v4.6

  • ๐Ÿ”– Version 2.4.6 - December, 2019

    ๐Ÿ›  Fixed typos in White mapping of whitespace characters, to use
    correct "\u" prefix instead of "u".

    ๐Ÿ›  Fix bug in left-associative ternary operators defined using
    infixNotation. First reported on StackOverflow by user Jeronimo.

    โœ… Backport of pyparsing_test namespace from 3.0.0, including
    โœ… TestParseResultsAsserts mixin class defining unittest-helper
    ๐Ÿ“œ . def assertParseResultsEquals(
    self, result, expected_list=None, expected_dict=None, msg=None)
    ๐Ÿ“œ . def assertParseAndCheckList(
    self, expr, test_string, expected_list, msg=None, verbose=True)
    ๐Ÿ“œ . def assertParseAndCheckDict(
    self, expr, test_string, expected_dict, msg=None, verbose=True)
    โœ… . def assertRunTestResults(
    โœ… self, run_tests_report, expected_parse_results=None, msg=None)
    ๐Ÿ‘€ . def assertRaisesParseException(self, exc_type=ParseException, msg=None)

    โœ… To use the methods in this mixin class, declare your unittest classes as:

    โœ… from pyparsing import pyparsing_test as ppt
    โœ… class MyParserTest(ppt.TestParseResultsAsserts, unittest.TestCase):