A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-March/021794.html below:

[Python-Dev] Deprecating string exceptions

[Python-Dev] Deprecating string exceptions [Python-Dev] Deprecating string exceptionsPaul Prescod paul@prescod.net
Wed, 27 Mar 2002 09:37:16 -0800
"Martin v. Loewis" wrote:
> 
> http://python.org/sf/518846 reports that new-style classes cannot be
> used as exceptions. I think it is desirable that this is fixed, but I
> also believe that it conflicts with string exceptions. So I would like
> to propose that string exceptions are deprecated for Python 2.3, in
> order to remove them in Python 2.4, simultaneously allowing arbitrary
> objects as exceptions.

Should it be arbitrary objects or just subclasses of exception: "It is
recommended that user-defined exceptions in new code be derived from
Exception, although for backward compatibility reasons, this is not
required. Eventually this rule will be tightened."

 * http://www.python.org/doc/essays/stdexceptions.html

 Paul Prescod



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