bject of a different class, its __init__ method will be called."
Am I missing something? Is this documented somewhere else? Also it
would be nice if someone could point me to the function that implements
this in C. I didn't find anything in object.c or typeobject.c.
Best regards
Frank
one
with duplicate values. My solution assigns every value a different
rank (starting from 0) such that the highest rank is len(my_dict) - 1.
def annotate_with_rank(my_dict):
items = my_dict.items()
items.sort(key = lambda (k, v): v)
return dict((k, (i, v)) for i, (k, v) in enumerate(ite
Hi, again,
On Thu, 22 Mar 2007 18:11:46 +0100
Frank Benkstein <[EMAIL PROTECTED]> wrote:
> On 22 Mar 2007 09:41:43 -0700
> "alain" <[EMAIL PROTECTED]> wrote:
>
> > I have a problem I wonder if it has been solved before.
> > I have a dictionnary and
es method would be
very useful. Keyword parameters to the class statement are not so
important IMHO.
Best regards
Frank Benkstein.
--
GPG (Mail): 7093 7A43 CC40 463A 5564 599B 88F6 D625 BE63 866F
GPG (XMPP): 2243 DBBA F234 7C5A 6D71 3983 9F28 4D03 7110 6D51
signature.asc
Description: PGP signat