Open
Description
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):
if self.__doc__ is None:
raise JsonPathParserError(
'Docstrings have been removed! By design of PLY, '
'jsonpath-rw requires docstrings. You must not use '
'PYTHONOPTIMIZE=2 or python -OO.'
)