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

BUG: pass kwargs to TimedAnimation #2069

Merged
merged 1 commit into from May 28, 2013
Merged

Conversation

jakevdp
Copy link
Contributor

@jakevdp jakevdp commented May 27, 2013

A quick bug fix to pass keyword arguments on to the parent class.

@jakevdp
Copy link
Contributor Author

jakevdp commented May 27, 2013

Another thing: throughout this file, initialization functions are called directly, rather than with super(). Is there a reason for avoiding super here, or should that be changed?

@pelson
Copy link
Member

pelson commented May 28, 2013

Thanks @jakevdp. We should apply this to the v1.3.x branch. @mdboom - shall we cherry pick the commit, or resubmit a PR (this is a general question about the maintenance branch I guess...).

Another thing: throughout this file, initialization functions are called directly, rather than with super(). Is there a reason for avoiding super here, or should that be changed?

I think I remember a discussion between @dopplershift and @jdh2358 regarding issues with multiple inheritance (in #1012 I think) and various __init__s not being called when they were designed to be.

👍 from me

@mdboom
Copy link
Member

mdboom commented May 28, 2013

@pelson: Yes, this should be backported to 1.3.x, and possibly 1.2.x (haven't yet checked its applicability there). I think merging to master and then cherry-picking the merge to the branches after is fine (rather than resubmitting PRs).

As per super -- yes, with multiple inheritance being used here, it is safer to not use super. And in general, I prefer not to use super on the grounds of explicit being better than implicit, though it doesn't require care to update when moving classes around the heirarchy, but that's a rare occurrence.

mdboom added a commit that referenced this pull request May 28, 2013
BUG: pass kwargs to TimedAnimation
@mdboom mdboom merged commit 220306b into matplotlib:master May 28, 2013
mdboom added a commit that referenced this pull request May 28, 2013
BUG: pass kwargs to TimedAnimation
mdboom added a commit that referenced this pull request May 28, 2013
BUG: pass kwargs to TimedAnimation
@dmcdougall
Copy link
Member

As per super -- yes, with multiple inheritance being used here, it is safer to not use super. And in general, I prefer not to use super on the grounds of explicit being better than implicit, though it doesn't require care to update when moving classes around the heirarchy, but that's a rare occurrence.

Also not that the call signature of super has changed in Python 3.3, I think. I'm not sure if this is something 2to3 handles.

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.

None yet

4 participants