[Python-Dev] I think my set module is ready for prime time; comments?

Guido van Rossum guido@digicool.com
Tue, 23 Jan 2001 22:54:25 -0500


> Neil Schemenauer <nas@arctrix.com>:
> 
> > Basicly, we would
> > use the implementation of PyDict but drop the values.
> 
> This could be incorporated into PyDict. Instead of storing keys and
> values in the same array, keep them in separate arrays and only
> allocate the values array the first time someone stores a value other
> than 1.

Not a bad idea!  (But shouldn't the default value be something else,
like none?)

--Guido van Rossum (home page: http://www.python.org/~guido/)