*args, **kwargs

05:15 PM - 06:00 PM on August 16, 2014, Room 701

Brian Faherty

Audience level:
Core Python


*args and **kwargs are all over my code, but what do they really mean?


After using python for more than a year, I realized that the args and kwargs being passed around were a bit of a mystery to me. I knew that I needed them especially with calls to super. Sadly at that time, I would sometimes forget to splat them, because I didn't understand how they worked. It took a while for me to even find the real name of args and kwargs, and that's when I really start to learn what I needed. In this talk I'll cover arguments and parameters including var-positional and var-keyword, which most us know affectionately as *args, **kwargs.