Skip to content

Instantly share code, notes, and snippets.

@ChrisPenner
Last active February 15, 2016 18:53
Show Gist options
  • Save ChrisPenner/1436ac6d9f73dd8a9242 to your computer and use it in GitHub Desktop.
Save ChrisPenner/1436ac6d9f73dd8a9242 to your computer and use it in GitHub Desktop.
"Don't argue" blog post
@supply_args
def main(first, second, keyword=42, *extras):
print first, second, keyword, extras
@supply_args('first', 'second', 'third', keyword=42, args=True)
def main(first, second, third, keyword=42, args):
print first, second, third, keyword, args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment