3 ms·
Building up kwargs should be something done as a last resort, or in situations where you need to be a pass-through eg decorators, and the current functionality
by ltbarcly3 3y ago
Building up kwargs should be something done as a last resort, or in situations where you need to be a pass-through eg decorators, and the current functionality covers that more or less perfectly. I am suspicious that this suggestion is just to enable poor quality code that the person suggesting it would just grow out of over time.
You can just write a class to track your kwargs and args if you want to do what is in this suggestion. Then when you want to use it you would have to do `whatever_func(*args.args, **args.kwargs)`, which isn't exactly a huge amount of trouble.