Order of keyword arguments
Andres Corrada
andres at corrada.com
Sun Nov 21 01:33:23 EST 1999
Hi,
Can one access the order in which keyword arguments were passed to a
function? I want to call a function with the keyword syntax: f(
foo='theFooString', bar='theBarString' ) and use the fact that foo was
listed first so I can do something like:
def f( **kw ):
Process keyword arguments remembering the order in which the were used
to call the function.
Print first keyword
Print second keyword
.
.
.
------------------------------------------------------
Andres Corrada-Emmanuel Email: andres at corrada.com
Owner http://www.corrada.com/mamey
Mamey Phone: (413) 587-9595
------------------------------------------------------
More information about the Python-list
mailing list