Data type ideas
Edward C. Jones
edcjones at erols.com
Sat Mar 30 10:15:29 EST 2002
I have a module called "MultiDict.py" which you can find at
"http://members.tripod.com/~edcjones/pycode.html". It is probably too
slow but it might give you some ideas.
Also consider using MySQL / MySQLdb or writing a C++ function using
multimaps.
Good luck,
Ed Jones
Joel Ricker wrote:
> HI all, got a new problem :)
>
> I have a tab delimited file of people plus a list of groups they belong
> to like so:
>
> Person 1 Group A
>
> Group B
>
> Person 2 Group B
>
> Person 3 Group A
>
> Group C
>
> So basically a person can be part of one of more groups. I'm looking to
> process this list so that I can take each group and examine the list of
> people in it. Basically turn the list into:
>
> Group A Person 1
>
> Person 3
>
> Group B Person 1
>
> Person 2
>
> Group C Person 3
More information about the Python-list
mailing list