You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed empty error message bug, PR submitted by InSync (Avoid assigning an empty error message to delegated parse exception #534). This should return pyparsing's exception messages to a former, more helpful form. If you have code that parses the exception messages returned by pyparsing, this may require some code changes.
Added unit tests to test for exception message contents, with enhancement to pyparsing.testing.assertRaisesParseException to accept an expected exception message.
Updated example select_parser.py to use PEP8 names and added Groups for better retrieval of parsed values from multiple SELECT clauses.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Added
ieee_float
expression topyparsing.common
, which parses float values, plus "NaN", "Inf", "Infinity". PR submitted by Bob Peterson (Accept floating-point NaN and Inf as fnumber #538).Updated pep8 synonym wrappers for better type checking compatibility. PR submitted by Ricardo Coccioli (Fix pep8 compatibility code (fixes #501) #507).
Fixed empty error message bug, PR submitted by InSync (Avoid assigning an empty error message to delegated parse exception #534). This should return pyparsing's exception messages to a former, more helpful form. If you have code that parses the exception messages returned by pyparsing, this may require some code changes.
Added unit tests to test for exception message contents, with enhancement to
pyparsing.testing.assertRaisesParseException
to accept an expected exception message.Updated example
select_parser.py
to use PEP8 names and added Groups for better retrieval of parsed values from multiple SELECT clauses.Added example
email_address_parser.py
, as suggested by John Byrd (Example request: email parsing #539).Added example
directx_x_file_parser.py
to parse DirectX template definitions, and generate a Pyparsing parser from a template to parse .x files.Some code refactoring to reduce code nesting, PRs submitted by InSync.
All internal string expressions using '%' string interpolation and
str.format()
converted to f-strings.This discussion was created from the release Pyparsing 3.1.2.
Beta Was this translation helpful? Give feedback.
All reactions