Skip to content
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

Use globals() instead of locals() for adding colormaps as names to cm module #19649

Merged
merged 1 commit into from
Mar 6, 2021

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Mar 5, 2021

PR Summary

While this seems to have been working, manipulating locals() is not guaranteed to have any effect.
https://docs.python.org/3/library/functions.html#locals

@anntzer anntzer merged commit 71c9f09 into matplotlib:master Mar 6, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 6, 2021
@timhoffm timhoffm deleted the globals branch March 6, 2021 10:43
dstansby added a commit that referenced this pull request Mar 6, 2021
…649-on-v3.4.x

Backport PR #19649 on branch v3.4.x (Use globals() instead of locals() for adding colormaps as names to cm module)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants