Created
February 11, 2013 16:17
-
-
Save jacoby/4755471 to your computer and use it in GitHub Desktop.
This is how you send a function zero or one arguments in Python
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 yaml_test( *args ): | |
config = '~/twitter.cnf' | |
assert 0 <= len(args) < 2 | |
if len(args)==1: | |
config = args[0] | |
do_yaml( config ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment