is possible to get order of keyword parameters ?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Fri Jan 25 11:26:49 EST 2008
On Fri, 25 Jan 2008 05:49:40 -0800, rndblnch wrote:
> 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 ?
Impossible. Dictionaries are unordered.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list