News for hackers. Stuff that matters.
Re:Understanding python *args and **kwargs by jeff18 on Friday October 02, 2009 @01:52PM (#857567)

  def test(a, b, *args, **kwargs):
    print a, b, args, kwargs

  >>> test(1, 2, 3, 4, aa=5, bb=6)
  1 2 (3, 4) {'aa': 5, 'bb': 6}
'nuff said

There are no comments on this comment yet.