[Python-Dev] PEP 218 (sets); moving set.py to Lib
Guido van Rossum
Tue, 20 Aug 2002 23:19:54 -0400
> > Is there any particular reason BaseSet and basestring need to raise
> > different exceptions on an attempt at instantiation ?
> Hm, I dunno. NotImplementedError was intended for this kind of use,
> but TypeError also matches. I'll add an XXX for this.
I found a good reason why it should be TypeError, so TypeError it is.
--Guido van Rossum (home page: http://www.python.org/~guido/)