How to slice a list of objects in association of the object attributes

Posted by gizgok on Stack Overflow See other posts from Stack Overflow or by gizgok
Published on 2010-04-25T06:41:34Z Indexed on 2010/04/25 6:43 UTC
Read the original article Hit count: 228

Filed under:
|
|

I have a list of fixtures.Each fixture has a home club and a away club attribute.I want to slice the list in association of its home club and away club.The sliced list should be of homeclub items and awayclub items.

Easier way to implement this is to first slice a list of fixtures.Then make a new list of the corresponding Home Clubs and Away Clubs.I wanted to know if we can do this one step.

© Stack Overflow or respective owner

Related posts about python

Related posts about list