3 ms·
Python just gives you a choice, use named arguments or refactor your API and use objects for options. It is up to you how you are going to use it. What I don't
by codedokode 4y ago
Python just gives you a choice, use named arguments or refactor your API and use objects for options. It is up to you how you are going to use it.
What I don't like though is when all those options are hidden behind two-stars keyword argument and it is difficult to understand what options are allowed, what they mean, what type they have and so on:
def example(**options):
...