Skip to content

Deprecate setting the same property under two different aliases. #12962

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
Dec 25, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Dec 9, 2018

This will allow getting rid of the notion of alias priority, and is
consistent with Python's behavior (as explained in the changelog entry).

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@anntzer anntzer added this to the v3.1 milestone Dec 9, 2018
This will allow getting rid of the notion of alias priority, and is
consistent with Python's behavior (as explained in the changelog entry).
@anntzer anntzer force-pushed the duplicated-aliases branch from d229bac to 0316ae1 Compare December 9, 2018 21:47
@WeatherGod
Copy link
Member

I'd definitely see the point of doing this, but I do wonder how often this happens inadvertently in third-party packages like cartopy as properties from multiple sources gets merged together.

We should also double-check with Cartopy on this because they are wrestling with property-setting issues, too.

@anntzer
Copy link
Contributor Author

anntzer commented Dec 10, 2018

That's why it's going through a deprecation.
Moreover, the way you describe it it's almost certainly hiding bugs in the third-party packages...

@tacaswell
Copy link
Member

Indeed, recall the pain we went through with py3.4 and things that worked half of the time...

@timhoffm timhoffm merged commit da8dea2 into matplotlib:master Dec 25, 2018
@anntzer anntzer deleted the duplicated-aliases branch December 26, 2018 13:48
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.

4 participants