is possible to get order of keyword parameters ?

rndblnch rndblnch at gmail.com
Fri Jan 25 08:49:40 EST 2008


(sorry, draft message gone to fast)

i.e. is it possible to write such a function:

def f(**kwargs):
    <skipped>
    return result

such as :
f(x=12, y=24) == ['x', 'y']
f(y=24, x=12) == ['y', 'x']

what i need is to get the order of the keyword parameters inside the
function.
any hints ?

thanks,

renaud



More information about the Python-list mailing list