is possible to get order of keyword parameters ?
Larry Bates
larry.bates at websafe.com
Fri Jan 25 11:27:06 EST 2008
Keyword arguments are normally treaded as "order independent".
Why do you think you need to find the order? What problem do
you wish to solve?
-Larry
rndblnch wrote:
> (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