Created
September 8, 2013 16:25
-
-
Save jdswinbank/6486164 to your computer and use it in GitHub Desktop.
This file contains 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 function1(*args, **kwargs): | |
print "in function 1: ", args, kwargs | |
function2(*args, **kwargs) | |
def function2(*args, **kwargs): | |
print "in function 2: ", args, kwargs | |
print "local variables are:", locals() | |
function3(locals()) | |
def function3(*args, **kwargs): | |
print "in function 3: ", args, kwargs | |
if __name__ == "__main__": | |
function1(1, 2, 3, foo="bar") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment