Skip to content

Instantly share code, notes, and snippets.

@neotam
Created March 13, 2019 00:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save neotam/020ca9e9ba5f21ecb83f567fd8caff6c to your computer and use it in GitHub Desktop.
Save neotam/020ca9e9ba5f21ecb83f567fd8caff6c to your computer and use it in GitHub Desktop.
def printArgsByKind(a, b, c, default=None, intype=int, *more, operation, print_result=False, return_type, ignore_exceptions=True, **kwargs):
print("Regular Positional Arguments a: {}, b: {}, c: {}".format(a, b, c))
print("Default Arguments default: {}, intype: {}".format(default, intype) )
print("Variable length positional arguments(tuple) more: {}".format(more))
print("Non-Default Keyword-Only Arguments operation: {}, return_type: {}".format(operation, return_type))
print("Default Keyword-Only Arguments print_result: {}, ignore_exception: {}".format(print_result, ignore_exceptions))
print("Variable length keyword arguments kwargs: {}".format(kwargs))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment