[Python-Dev] PEP 218 (sets); moving set.py to Lib
Delaney, Timothy
tdelaney@avaya.com
Wed, 21 Aug 2002 16:26:24 +1000
> From: Guido van Rossum [mailto:guido@python.org]
>
> OK, from the checkins:
>
> - Changed the NotImplementedError in BaseSet.__init__ to TypeError,
> both for consistency with basestring() and because we have to use
> TypeError when denying Set.__hash__. Together those provide
> sufficient evidence that an unimplemented method needs to raise
> TypeError.
Hmm ... is there a case that NotImplementedError should be a subclass of
TypeError? Conceptually it would make sense (this *type* does not implement
this method).
Of course, it would probably also break code ...
Tim Delaney