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

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 24 Jan 2001 15:52:43 +1300 (NZDT)

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.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+