Created
March 19, 2012 19:07
-
-
Save timofurrer/2124450 to your computer and use it in GitHub Desktop.
Python packed arguments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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