Skip to content

Instantly share code, notes, and snippets.

Created February 16, 2009 12:59
Show Gist options
  • Save anonymous/65156 to your computer and use it in GitHub Desktop.
Save anonymous/65156 to your computer and use it in GitHub Desktop.
class Test:
def __init__(self, *args, **kwargs):
for arg in args:
print arg
for key,arg in kwargs:
self.process_arg(key, arg)
def process_arg(self, key, arg)
print key, arg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment