[Python-Dev] re: Using lists as sets
Moshe Zadka
Moshe Zadka <mzadka@geocities.com>
Mon, 20 Mar 2000 17:03:47 +0200 (IST)
On Mon, 20 Mar 2000 gvwilson@nevex.com wrote:
> [After discussion with Ping, and weekend thought]
>
> I would like to vote against using lists as sets:
I'd like to object too, but for slightly different reasons: 20-something
lines of Python can implement a set (I just chacked it) with the new
__contains__. We can just suply it in the standard library (Set module?)
and be over and done with.
Moshe Zadka <mzadka@geocities.com>.
http://www.oreilly.com/news/prescod_0300.html
http://www.linux.org.il -- we put the penguin in .com