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

Incorrect use of super() in mplot3d? #3493

Closed
michaelwimmer opened this issue Sep 10, 2014 · 0 comments
Closed

Incorrect use of super() in mplot3d? #3493

michaelwimmer opened this issue Sep 10, 2014 · 0 comments

Comments

@michaelwimmer
Copy link

I have a number of custom collections that derive from matplotlib Collections. Since 1.4, I have the problem that my code breaks when the init function of my code calls the init function of the mplot3d collection:

/mplot3d/art3d.py", line 322, in __init__
    super(self.__class__, self).__init__(*args, **kwargs)
RuntimeError: maximum recursion depth exceeded while calling a Python object

I researched the issue, and in general it is discouraged to use super(self.__class, ...) as it breaks when classes are derived (see e.g. Stackoverflow ). Is there a special reason why this is there?

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

No branches or pull requests

2 participants