Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Incorrect use of super() in mplot3d? #3493

Closed
@michaelwimmer

Description

@michaelwimmer

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions