[Python-Dev] Using lists as sets

Ka-Ping Yee ping@lfw.org
Fri, 17 Mar 2000 11:49:18 -0600 (CST)


On Fri, 17 Mar 2000, Ka-Ping Yee wrote:
> 
>     c.take(item) is equivalent to
> 
>         if item not in c: c.append(item)
> 
>     c.drop(item) is equivalent to
> 
>         while item in c: c.remove(item)

I think i've decided that i like the verb "include" much better than
the rather vague word "take".  Perhaps this also suggests "exclude"
instead of "drop".


-- ?!ng