Skip to content

Instantly share code, notes, and snippets.

@timofurrer
Created March 19, 2012 19:07
Show Gist options
  • Save timofurrer/2124450 to your computer and use it in GitHub Desktop.
Save timofurrer/2124450 to your computer and use it in GitHub Desktop.
Python packed arguments
def draw_point(x, y):
# do some magic
point_foo = (3, 4)
point_bar = {'y': 3, 'x': 2}
draw_point(*point_foo)
draw_point(**point_bar)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment