Python: Passing parameters by name along with kwargs
The general idea is: def func(arg1, arg2, …, kwarg1=default, kwarg2=default, …, *args, **kwargs): … You can use as many of those as you want. The * and ** will ‘soak up’ any remaining values not otherwise accounted for. Positional arguments (provided without defaults) can’t be given by keyword, and non-default arguments can’t follow default arguments. … Read more