WANTED: A good name for the pair (args, kwargs)

Jonathan Fine J.Fine at open.ac.uk
Thu Mar 4 13:30:12 CET 2010


Hi

We can call a function fn using
     val = fn(*args, **kwargs)

I'm looking for a good name for the pair (args, kwargs).  Any suggestions?

Here's my use case:
     def doit(fn , wibble, expect):
         args, kwargs = wibble
         actual = fn(*args, **kwargs)
         if actual != expect:
             # Something has gone wrong.
             pass

This is part of a test runner.

For now I'll use argpair, but if anyone has a better idea, I'll use it.

-- 
Jonathan



More information about the Python-list mailing list