Contribute Media
A thank you to everyone who makes this possible: Read More

Accepting arbitrary keyword arguments in Python


Ever seen **kwargs in a function definition? There's nothing special about the name "kwargs": it's the ** that's special. You can use Python's ** operator to define a function that accepts arbitrary keyword arguments.


Improve this page