Set like feature

Alex Martelli aleaxit at yahoo.com
Mon Nov 15 18:05:04 EST 2004


Mitja <nun at example.com> wrote:

> > each element on a column by column basis.
> >
> > I am using python2.2 so no sets. Can anyone think of an efficient way
> > to do this?
> 
> If I understand the problem correctly, splitting the lines up and sorting
> them before comparison _is_ much better than a naive approach, though I
> don't know if that's what's best.

Splitting, sure.  Sorting would destroy the 'column by column basis'.


Alex



More information about the Python-list mailing list