Hi Tim,
Thanks for the comments, I obviously hadn't thought beyond the simple
case.
I am happy I wrote (and that you Martin answered) instead of trying to
program myself into a halffunctional implementation %-)
Regards
Anthon
On Nov 18, 1:40 pm, Tim Chase <[EMAIL PROTECTED]> wrote:
> > I am look
Martin,
Thanks for pointing this out. I might have found that code eventualy
but it would
have taken me quite sometime.
There was a request from a user to make ordereddict more of drop-in
replacement for dict. That can be already be done by specifying the
relax keyword parameter (or defining a su
> I am looking for a way to determine the order of keyword parameters
> passed on to a class method.
I'm fairly certain it's not possible, as how would code like this
behave:
def my_func(**kwd):
kwd = OrderedDict(kwd) #magic happens here?
return do_something(kwd)
my_dict = {'hello':
> I am not sure if this kind of info is available internally to the
> interpreter (ordereddict is in C, so I would even prefer that). Has
> anyone done this or anything like it?
It's not available. See ceval.c:do_call; this fills the dictionary.
>From then on, information about the order of keywor