Skip to content

CLI doesn't work in Python 3.13 due to locals change #163

@tpoliaw

Description

@tpoliaw

Python 3.13 changes the behaviour of locals() to prevent modifications (see PEP 558 and 667).

In the CLI where we have

    for letter in string.ascii_lowercase:
        locals()[letter] = letter
    eval_spec = eval(spec)
    plot_spec(eval_spec)

this causes the eval to run without any of the variables available and the tests fail with NameErrors.

Acceptance Criteria

  • Tests should pass

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