Ask Your Question
1

passing options to superclass method

asked 2014-09-29 14:05:39 -0500

Hartmut Monien gravatar image

I would like to modify the plot code of a plot attribute in a derived class

class Foo(Bar):
     def plot(self, **options):
         super(Foo, self).plot(options)

This does not seem to work. What is the right way to pass the options?

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
1

answered 2014-10-13 04:23:44 -0500

Would be better to use

super(Foo, self).plot(**options)

Vincent

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-09-29 14:05:39 -0500

Seen: 32 times

Last updated: Oct 13 '14