Re: overlapping sets

2006-03-25 Thread Alex Martelli
Lonnie Princehouse <[EMAIL PROTECTED]> wrote: > There is a sets.Set class built in to Python. You might want to use In 2.4, there's also a set builtin type -- you can keep using the sets module from the standard library, but the built-in set is faster. If you need compatibility with both 2.3 an

Re: overlapping sets

2006-03-24 Thread Lonnie Princehouse
There is a sets.Set class built in to Python. You might want to use this instead of lists. It defines some handy set operations like intersection, union, and so on. from sets import Set my_sets = { 'one' : Set([0,4,7,9]), 'two' : Set([0,3,7,9]), etc... } -- http://mail.python.org/mailm

Re: overlapping sets

2006-03-24 Thread Gerard Flanagan
Gerard Flanagan wrote: > kpp9c wrote: > > > I have a question... and ... whew ... i am gonna be honest, i haven't > > the slightest clue how to even start ... i am not sure if i used up all > > my good will here or can take a mulligan.. i love to try to at least > > post some lame broken code of m

Re: overlapping sets

2006-03-24 Thread Gerard Flanagan
kpp9c wrote: > I have a question... and ... whew ... i am gonna be honest, i haven't > the slightest clue how to even start ... i am not sure if i used up all > my good will here or can take a mulligan.. i love to try to at least > post some lame broken code of my own at first... but like i said,

Re: overlapping sets

2006-03-24 Thread Michael Spencer
kpp9c wrote: > I have a question... and ... whew ... i am gonna be honest, i haven't > the slightest clue how to even start ... i am not sure if i used up all > my good will here or can take a mulligan.. i love to try to at least > post some lame broken code of my own at first... but like i said, n

Re: overlapping sets

2006-03-23 Thread Adam DePrince
On Thu, 2006-03-23 at 22:55 -0800, kpp9c wrote: > I have a question... and ... whew ... i am gonna be honest, i haven't > the slightest clue how to even start ... i am not sure if i used up all > my good will here or can take a mulligan.. i love to try to at least > post some lame broken code of my

overlapping sets

2006-03-23 Thread kpp9c
I have a question... and ... whew ... i am gonna be honest, i haven't the slightest clue how to even start ... i am not sure if i used up all my good will here or can take a mulligan.. i love to try to at least post some lame broken code of my own at first... but like i said, not being a math perso