Hi Everyone,<br><br>Is there a way to obtain the order of keyword arguments in this example:<br><br>def foo(**kargs):<br> print kargs.items()<br><br>The call foo(A=0, B=1) could print (('A', 0), ('B', 1)) or (('B', 1), ('A', 0)).<br>
<br>Since dictionaries do not know about ordering, I can't obtain the order of keyword arguments by simply looking into kargs.<br>Perhaps there is a way to introspect the function stack to get a hold of the order of the arguments. Does anyone know if this is possible?<br>
<br>Thanks!<br>Igor<br><br>