Skip to content

Create CLI name variables in new locals mapping #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

tpoliaw
Copy link
Contributor

@tpoliaw tpoliaw commented May 28, 2025

In 3.13 the behaviour of the locals builtin changed so that
modifications no longer had any affect in certain situations. This meant
the plot CLI subcommand would raise NameError for single letter axis
names as used in the cli tests.

Passing the locals as a new mapping allows the same code to work with
both the new and old locals behaviour.

Fixes #163

Instructions to reviewer on how to test:

  1. Run tests under Python 3.13 (eg uv run --extra dev --python 3.13 pytest)
  2. Check tests pass

Checks for reviewer

  • Would the PR title make sense to a user on a set of release notes

In 3.13 the behaviour of the locals builtin changed so that
modifications no longer had any affect in certain situations. This meant
the plot CLI subcommand would raise NameError for single letter axis
names as used in the cli tests.

Passing the locals as a new mapping allows the same code to work with
both the new and old locals behaviour.
@tpoliaw tpoliaw requested a review from coretl May 29, 2025 14:33
Copy link
Contributor

@coretl coretl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look fine, will the CI be fixed elsewhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI doesn't work in Python 3.13 due to locals change
2 participants