*args and **kwargs
Python has two very useful idioms for passing a variable number of arguments to functions, *args and **kwargs. These arguments are used extensively when developing general-purpose libraries, decorators or proxies. But what are these these two mysterious words of pirate sounding origin? *args is a tuple of positional arguments (i.e. “fred”, “tom”, “betty”) **kwargs is […]