Created
June 5, 2015 17:48
-
-
Save ericdill/365b8b35c2d5822969db 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
dct = { | |
'thing1': 'a', | |
'thing3': 'c', | |
'thing4': 'd', | |
'thing5': 'e' | |
} | |
def plotting_function(thing1=None, thing2=None, thing3=None, **kwargs): | |
print('thing1 = %s' % thing1) | |
print('thing2 = %s' % thing2) | |
print('thing3 = %s' % thing3) | |
print('kwargs = {}'.format(kwargs)) | |
plotting_function(**dct) | |
"""Outputs the following: | |
thing1 = a | |
thing2 = None | |
thing3 = c | |
kwargs = {'thing4': 'd', 'thing5': 'e'} | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment