Skip to content

[Feature Request] Support executing with -OO or OPTIMIZE=2 #121

Open
@mgiamberardino

Description

@mgiamberardino

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.'
            )

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions