Ask Your Question
1

passing options to superclass method

asked 10 years ago

Hartmut Monien gravatar image

updated 2 years ago

FrédéricC 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?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

vdelecroix gravatar image

Would be better to use

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

Vincent

Preview: (hide)
link

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: 10 years ago

Seen: 206 times

Last updated: Oct 13 '14