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/2005-January/051108.html below:

[Python-Dev] Exceptions *must*? be old-style classes?

[Python-Dev] Exceptions *must*? be old-style classes? [Python-Dev] Exceptions *must*? be old-style classes?"Martin v. Löwis" martin at v.loewis.de
Sun Jan 16 10:27:12 CET 2005
Simon Percivall wrote:
> What would happen if Exception were made a new-style class, enforce
> inheritance from Exception for all new-style exceptions, and allow all
> old-style exceptions as before.

string exceptions would break.

In addition, code may break which assumes that exceptions are classic
instances, e.g. that they are picklable, have an __dict__, and so on.

 > Am I wrong in assuming that only the
> most esoteric exceptions inheriting from Exception would break by
> Exception becoming new-style?

Yes, I think so.

Regards,
Martin
More information about the Python-Dev mailing list

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