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/2005-May/053952.html below:

[Python-Dev] PEP 344: Exception Chaining and Embedded Tracebacks

[Python-Dev] PEP 344: Exception Chaining and Embedded Tracebacks [Python-Dev] PEP 344: Exception Chaining and Embedded TracebacksWalter Dörwald walter at livinglogic.de
Fri May 20 17:06:07 CEST 2005
Michael Hudson wrote:

> Walter Dörwald <walter at livinglogic.de> writes:
> 
>>Ka-Ping Yee wrote:
>>
>>>[...]
>>>    (a) ban string exceptions
>>>    (b) require all exceptions to derive from Exception
>>>    (c) ban bare "except:"
>>>    (d) eliminate sys.exc_*
>>
>>I think somewhere in this list should be:
>>
>>       (?) Remove string exceptions from the Python stdlib
> 
> I think this is done, more or less.  There's one in test_descr, I
> think (probably testing that you can't raise str-subclasses but can
> raise strs).

There are a few appearances in docstrings, and the Demo, Mac/Tools and 
Tools directories.

Those should be rather simple to fix. The only problem might be if there 
is code that catches these exceptions.

>>and perhaps:
>>
>>       (?) Make Exception a new style class
> 
> I have a patch for this on SF, of course.

http://www.python.org/sf/1104669 it seems.

Bye,
    Walter Dörwald
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