Need help...

Shagshag shagshag13 at yahoo.fr
Mon May 6 03:34:13 EDT 2002


Hello

(sorry for my poor english)

I need to build some kind of python object(s) which could handle these
:

having three keys a, b, c i have to define all possible "couples keys"

(a, b) -> v1 -> v2
(a, c) -> v3 -> v5 -> v8
(b, c) -> v1 -> v4
(a, b, c) -> v2 -> v4 -> v7

where -> stand for something like a linked list.
and i must be able to retrieve (a, b) with (b, a), (a, c) with (c, a)
and (a, b, c) with (a, c, b), (c, a, b), (b, a, c) or any combination
of the three...
i can have couples of 2, 3, 4, or more keys...

In fact i have more than a thousand possible couples and the linked
list might be quite long...

Does anyone has a clue ???

Huge thanks in advance.



More information about the Python-list mailing list