A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-August/028146.html below:

[Python-Dev] PEP 218 (sets); moving set.py to Lib

[Python-Dev] PEP 218 (sets); moving set.py to Lib [Python-Dev] PEP 218 (sets); moving set.py to LibDelaney, 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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4