News for hackers. Stuff that matters.
Re:Understanding python *args and **kwargs by algorias on Friday October 02, 2009 @12:39PM (#857389)
5 minutes followed by a sweet aha! moment.

What the article seems to miss, though (only skimmed it), is that you need to be incredibly careful with taking kwargs, specially if you're passing them along into secondary functions within the called function. Hidden bugs lie that way, as you could end up with bad/misspelled args that you think are having an effect, but aren't.

Always make sure all kwargs get unpacked.

There are no comments on this comment yet.