Pyparsing 3.1.2 #545
ptmcg
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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