Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Min/max for single integer. #71

@AbdulMagomedov

Description

@AbdulMagomedov

It is not possible to calculate min(x) or max(x) with a single integer. It is required to wrap it in tuple:
Input: parser.parse('min(x)').evaluate({"x": 3}) or parser.parse('min(3)').evaluate({})
Result: TypeError: 'int' object is not iterable

Despite this number can be parsed:
Input: parser.parse('min(x)') or parser.parse('min(3)')
Result: <py_expression_eval.Expression object at 0x7fd984ad8f10>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions