Skip to content

Do not use aliases of properties in internal code #11940

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

Merged
merged 1 commit into from
Aug 26, 2018

Conversation

timhoffm
Copy link
Member

PR Summary

This PR replaces most uses of property alias getters and setters in the matplotlib codebase.

Aliased property getters and setters are slightly slower and less readable than the original names. We shouldn't use them neither in the library code nor in the examples.

Basically, the use of aliases is only reasonable for property keyword arguments to keep the function call shorter and in interactive use to reduce the amount of typing.

@timhoffm timhoffm added this to the v3.1 milestone Aug 26, 2018
@anntzer anntzer merged commit 87a639d into matplotlib:master Aug 26, 2018
@timhoffm timhoffm deleted the no-internal-aliases branch August 26, 2018 18:03
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.

3 participants