summaryrefslogtreecommitdiff
path: root/pyparsing/results.py
Commit message (Collapse)AuthorAgeFilesLines
* Doc updates, remove references to deprecated delimitedList and ↵ptmcg2023-04-191-2/+2
| | | | delimited_list (use DelimitedList class)
* Fix #470 - Removed "" from the list of values that ParseResults will not ↵ptmcg2023-03-271-1/+1
| | | | save with a results name
* Black formattingptmcg2023-03-071-3/+9
|
* Add ParseResults.deepcopy() - fixes #463ptmcg2023-03-061-2/+27
|
* Add type annotationsptmcg2022-07-141-2/+10
|
* More post-cleanup from removing weakref on ParseResults._parentptmcg2022-07-111-18/+12
|
* Change weakref _parent reference in ParseResults to regular reference, to ↵ptmcg2022-07-111-11/+10
| | | | avoid early gc of a parent object - fixes #428
* Some micro-optimizationsptmcg2022-07-091-2/+3
|
* Simplify code that incrementally builds a ParseResultsptmcg2022-06-231-1/+4
|
* Fix up docstrings for deprecated functions (doc as deprecated, instead of ↵ptmcg2022-06-161-0/+3
| | | | duplicating actual function doc) - issue #411
* fix Sphinx errors/warnings (#410)Devin J. Pohly2022-06-101-2/+2
| | | | | | Two warnings remain from the Hebrew and Devanagari names in pyparsing_unicode, but those are due to Sphinx using Python's builtin `re` library to parse identifiers (which does not have thorough Unicode handling for `\w`).
* Convert most str.format() calls to use f-stringsptmcg2022-05-301-8/+5
|
* Update docstrings, replacing ZeroOrMore and OneOrMore with [...] and [1, ↵ptmcg2022-04-111-4/+4
| | | | ...] notation
* Clean up dump() examples in docstringsptmcg2022-02-151-9/+9
|
* Some code cleanup, replacing map() calls with list comprehensions; better ↵ptmcg2022-01-021-2/+4
| | | | typing for debug actions using typing.NamedTuple; using list comps in "".join calls
* Semi-fix collision of Dict and typing.Dict; Some mypy types cleanuppyparsing_3.0.5ptmcg2021-11-071-1/+1
|
* Fixed bug where ParseResults accidentally created recursive contents. (Issue ↵pyparsing_3.0.1ptmcg2021-10-241-1/+4
| | | | #315)
* Clean up bullet lists in docstringsptmcg2021-10-021-3/+3
|
* Add return types in results.py, and small perf change in __bool__ptmcg2021-09-221-5/+4
|
* Code cleanup: replaced dynamic attrs in ParseBaseException with properties, ↵ptmcg2021-09-211-14/+14
| | | | some addtional type annotations
* Fix ParseResults return of "" for dunder methods, which breaks some Python ↵ptmcg2021-09-191-0/+2
| | | | internals (Issue #208)
* Handle types passed to ParseResults (Py3.9 behavior change) (#276)ptmcg2021-09-091-1/+1
|
* Small perf tweaksptmcg2021-09-021-2/+2
|
* mypy cleanupptmcg2021-09-021-2/+3
|
* Sweep code for calls using legacy namesptmcg2021-08-081-1/+1
|
* Add PEP-8 naming, with compatibility synonymsptmcg2021-08-071-50/+54
|
* Fix internal bug in ParseResults.getName() (how did this ever work?)ptmcg2021-08-011-1/+1
|
* Update __versionTime__; blacken core code and examplesptmcg2021-08-011-30/+36
|
* fixed a bug for non-string token identifiersMax Fischer2021-06-261-1/+1
|
* #271 - remove comparison with bytes in ParseResults._null_valuesptmcg2021-04-131-1/+1
|
* Hide internal null_values list in ParseResults classptmcg2020-12-241-2/+2
|
* minor perf changes IIptmcg2020-10-251-2/+2
|
* minor perf changesptmcg2020-10-251-13/+9
|
* ParseResults.List class to support returning an actual list from a parse ↵ptmcg2020-10-241-6/+58
| | | | action, plus aslist and asdict args to Group and Dict classes to emit native Python types instead of ParseResults; also update repr() output of ParseResults to include the type name instead of just a bare tuple.
* Replace last-century '%' string interp with .format() usagePaul McGuire2020-07-191-6/+7
|
* Docstring fixes; cleanup dead/Py2 vestigial codeptmcg2020-07-101-1/+1
|
* Docstrings cleanup; add 'encoding' argument to parseFile; additional unit ↵ptmcg2020-07-081-12/+6
| | | | tests to improve ParseResults coverage
* Sphinx and docstring fixesptmcg2020-07-061-10/+20
|
* Fix ParseResults.dump() to show both keys *and* lower-level structuresptmcg2020-06-081-1/+1
|
* Fixed bug in ParseResults repr() which showed all matching entries for a ↵ptmcg2020-04-101-1/+1
| | | | results name, even if listAllMatches was set to False (Issue #205)
* Cleanup (object) from class definitions; add __slots__ to ↵Paul McGuire2020-02-231-5/+13
| | | | _ParseResultsWithOffset, and streamline args for ParseResults.__new__
* Rename (#179)Kyle Lahnakoski2020-02-231-84/+87
| | | | | | | | | | | | | | * change names of vars * add `__slots__` * remove doinit, use `__new__` * use set, not dict * black formatting * shorter names, but keep descriptive names
* Shorten pyparsing tracebacks, to clear out internal pyparsing calls; plus ↵ptmcg2020-02-011-1/+1
| | | | some micro-optimizations when using packrat parsing
* Break up pyparsing.py monolith into sub-modules in a pyparsing package (#162)Paul McGuire2019-11-181-0/+679
* Break up pyparsing.py monolith into sub-modules in a pyparsing package * Convert relative imports to absolutes * Reference submodule pyparsing in setup.py modules * Remove recursive import of pyparsing from setup.py * Black updates * setup.py updates - packages vs. modules. use .dev1 for the version