function parameters

Python function parameters

Order of positional-or-keyword parameters, *args and **kwargs

Vikash Kumar

2 minute read

Recently I was reviewing a piece of code, where a developer wrote a function which has named parameters, default parameters, *args and **kwargs. In first glance, the code doesn’t look to have any issue but looking carefully to the function signature the issue revealed itself.