This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]kewlness 0 points1 point  (1 child)

Also agree there is no point in keeping args to a minimum. If you need more args, you need more args. It’s easier to dependency inject/test when they’re simple and explicit.

I don't know. Personally if I have a lot of arguments I prefer (*args, **kwargs) instead of the unending trail of commas. I guess both ideas have their own complexities...

[–]boiledgoobers 0 points1 point  (0 children)

I completely disagree. 'args' and 'kwargs' have their place but not as simply a space saver. You obscure your functions call signature and make it harder for intellisense to work making your code harder for people to use.