On Aug 1, 1:31 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> On Wed, 01 Aug 2007 01:33:49 +, beginner wrote:
> > On Jul 19, 10:05 am, beginner <[EMAIL PROTECTED]> wrote:
> >> Hi Everyone,
>
> >> I have a simple list reconstruction problem, but I don't really know
> >> how to do it.
On Wed, 01 Aug 2007 01:33:49 +, beginner wrote:
> On Jul 19, 10:05 am, beginner <[EMAIL PROTECTED]> wrote:
>> Hi Everyone,
>>
>> I have a simple list reconstruction problem, but I don't really know
>> how to do it.
>>
>> I have a list that looks like this:
>>
>> l=[ ("A", "a", 1), ("A", "a", 2
On Jul 19, 10:05 am, beginner <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
>
> I have a simple list reconstruction problem, but I don't really know
> how to do it.
>
> I have a list that looks like this:
>
> l=[ ("A", "a", 1), ("A", "a", 2), ("A", "a", 3), ("A", "b", 1), ("A",
> "b", 2), ("B", "a", 1)
beginner wrote:
>
> What I want to do is to reorganize it in groups, first by the middle
> element of the tuple, and then by the first element. I'd like the
> output look like this:
itertools.groupby has already been mentioned, but it has a very specific
and complex behavior which may not be exa
On Thu, 2007-07-19 at 15:05 +, beginner wrote:
> Hi Everyone,
>
> I have a simple list reconstruction problem, but I don't really know
> how to do it.
>
> I have a list that looks like this:
>
> l=[ ("A", "a", 1), ("A", "a", 2), ("A", "a", 3), ("A", "b", 1), ("A",
> "b", 2), ("B", "a", 1), (
On Thu, 2007-07-19 at 15:05 +, beginner wrote:
> Hi Everyone,
>
> I have a simple list reconstruction problem, but I don't really know
> how to do it.
>
> I have a list that looks like this:
>
> l=[ ("A", "a", 1), ("A", "a", 2), ("A", "a", 3), ("A", "b", 1), ("A",
> "b", 2), ("B", "a", 1), (
beginner <[EMAIL PROTECTED]> wrote:
> Hi Everyone,
>
> I have a simple list reconstruction problem, but I don't really know
> how to do it.
>
> I have a list that looks like this:
>
> l=[ ("A", "a", 1), ("A", "a", 2), ("A", "a", 3), ("A", "b", 1), ("A",
> "b", 2), ("B", "a", 1), ("B", "b", 1)]
Hi Everyone,
I have a simple list reconstruction problem, but I don't really know
how to do it.
I have a list that looks like this:
l=[ ("A", "a", 1), ("A", "a", 2), ("A", "a", 3), ("A", "b", 1), ("A",
"b", 2), ("B", "a", 1), ("B", "b", 1)]
What I want to do is to reorganize it in groups, first