Boris Borcic wrote:
> Christian Meesters wrote:
>> Hoi,
>>
>> I have the following data structure (of variable size actually, to make
>> things simple, just that one):
>> d = {'a': {'x':[1,2,3], 'y':[4,5,6]},
>> 'b': {'x':[7,8,9], 'y':[10,11,12]}}
>> This can be read as a dict of possibilities
On Nov 1, 10:51 am, Christian Meesters <[EMAIL PROTECTED]> wrote:
> Thanks everyone,
>
> I knew there must be a snippet somewhere, just couldn't find one! (Just for
> the sake of completeness: Order doesn't matter and I hope that with my data
> I won't reach the recursion depth limit.)
>
> Christia
Christian Meesters wrote:
> Hoi,
>
> I have the following data structure (of variable size actually, to make
> things simple, just that one):
> d = {'a': {'x':[1,2,3], 'y':[4,5,6]},
> 'b': {'x':[7,8,9], 'y':[10,11,12]}}
> This can be read as a dict of possibilities: The entities 'a' and 'b' h
Thanks everyone,
I knew there must be a snippet somewhere, just couldn't find one! (Just for
the sake of completeness: Order doesn't matter and I hope that with my data
I won't reach the recursion depth limit.)
Christian
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 1, 9:12 am, Anand <[EMAIL PROTECTED]> wrote:
...
> This code works for dictionaries of any nested level.
At least up to the max recursion depth.
--
Ant.
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 1, 2:12 pm, Anand <[EMAIL PROTECTED]> wrote:
> On Oct 31, 10:21 pm, Christian Meesters <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hoi,
>
> > I have the following data structure (of variable size actually, to make
> > things simple, just that one):
> > d = {'a': {'x':[1,2,3], 'y':[4,5,6]},
> >
On Oct 31, 10:21 pm, Christian Meesters <[EMAIL PROTECTED]> wrote:
> Hoi,
>
> I have the following data structure (of variable size actually, to make
> things simple, just that one):
> d = {'a': {'x':[1,2,3], 'y':[4,5,6]},
> 'b': {'x':[7,8,9], 'y':[10,11,12]}}
> This can be read as a dict of p
On Oct 31, 5:21 pm, Christian Meesters <[EMAIL PROTECTED]> wrote:
> Hoi,
>
> I have the following data structure (of variable size actually, to make
> things simple, just that one):
> d = {'a': {'x':[1,2,3], 'y':[4,5,6]},
> 'b': {'x':[7,8,9], 'y':[10,11,12]}}
> This can be read as a dict of po
Hoi,
I have the following data structure (of variable size actually, to make
things simple, just that one):
d = {'a': {'x':[1,2,3], 'y':[4,5,6]},
'b': {'x':[7,8,9], 'y':[10,11,12]}}
This can be read as a dict of possibilities: The entities 'a' and 'b' have
the parameters 'x' and 'y', each. An