[Python-Dev] Re: Sets

Guido van Rossum guido@python.org
Thu, 18 Jul 2002 15:50:39 -0400


> > I believe I recommended to Greg to make sets "have" a dict instead of
> > "being" dicts, and I think he agreed.  But I guess he never got to
> > implementing that change.
> 
> Right.  OK, guess I'll make a new patch using delegation instead
> of inheritance, then.

Maybe benchmark the performance too.  If the "has" version is much
slower, perhaps we could remove unwanted interfaces from the public
API by overriding them with something that raises an exception (and
rename the internal versions to some internal name if they are
needed).

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