Skip to content

Instantly share code, notes, and snippets.

@Alan-FGR
Created June 17, 2016 03:03
Show Gist options
  • Save Alan-FGR/e23151820e1bd26b59631aad6baef564 to your computer and use it in GitHub Desktop.
Save Alan-FGR/e23151820e1bd26b59631aad6baef564 to your computer and use it in GitHub Desktop.
SSCCE for IRC
class MyClass(object):
def method_a(self, **kwargs):
self.method_b('arg_x_value', **kwargs)
def method_b(self, arg_x, arg_y=None, **kwargs):
print arg_y
self.method_c(**kwargs)
def method_c(self, arg_z=None):
print arg_z
MyClass().method_a(arg_y="somevalue_arg_y", arg_z="somevalue_arg_z")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment