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
PLY has the option to support running in optimized mode if we can somehow generate the tables on a first run: PLY - Using Python's Optimized Mode
If instead of compiling the parser each time we could generate and store them with write_tables=1 we could still run jsonpath-ng using -OO.
def__init__(self, debug=False, lexer_class=None):
ifself.__doc__isNone:
raiseJsonPathParserError(
'Docstrings have been removed! By design of PLY, ''jsonpath-rw requires docstrings. You must not use ''PYTHONOPTIMIZE=2 or python -OO.'
)
The text was updated successfully, but these errors were encountered:
Also, the author of PLY created SLY: https://github.com/dabeaz/sly which is more programmatic , and thus doesn't require doc strings. And I'm sure there are other parsers out there which don't require doc strings. This would be a great enhancement, as running -OO is a rather common thing.
Also, in your search for a new parser, finding a parser which is compatible with Apache/MIT/BSD might be good. The fact that PLY has no license could be problematic for some organizations. It looks like SLY has a BSD license which would be a good choice.
PLY has the option to support running in optimized mode if we can somehow generate the tables on a first run:
PLY - Using Python's Optimized Mode
If instead of compiling the parser each time we could generate and store them with write_tables=1 we could still run jsonpath-ng using -OO.
The text was updated successfully, but these errors were encountered: