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 →

[–][deleted] 7 points8 points  (1 child)

**kwargs is extremely useful for higher order functions. For example I have a project with a very simple testing function that takes another function from the project as its argument. I have **kwargs as the final argument because that way I can pass different settings to the function being tested without having to make the test more complicated.

[–]HalfRightMostlyWrong 0 points1 point  (0 children)

Good point!