[Python-Dev] PEP 218 (sets); moving set.py to Lib
Guido van Rossum
guido@python.org
Tue, 20 Aug 2002 17:41:13 -0400
> From: "Guido van Rossum" <guido@python.org>
> > I am still perplexed that I receoved *no* feedback on the sets module
> > except on this issue of sort order (which I consider solved by adding
> > a method _repr() that takes an optional 'sorted' argument).
>
> I think the __init__() code in BaseSet should be pushed down into Set and ImmutableSet. It should be replaced by code raising a
> TypeError just like we do for basestring:
>
> >>> basestring('abc')
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> TypeError: The basestring type cannot be instantiated
Good idea. I checked this in, raising NotImplementedError.
> Raymond Hettinger
>
> P.S. More comments are on the way as we play with, profile, review,
> optimize, and document the module ;)
Didn't you submit a SF patch/bug? I think I replied to that.
--Guido van Rossum (home page: http://www.python.org/~guido/)