[Python-Dev] with use case: exception chaining

2005-05-12 Thread Ka-Ping Yee
- Ka-ping Yee thinks we need separate entry points for the exceptional and the normal termination case. I disagree; this would end up in unnecessary duplication of code (or boilerplate to equate the two methods) in most cases. The whole *point* is that finally gets to do its

Re: [Python-Dev] with use case: exception chaining

2005-05-12 Thread Guido van Rossum
[Ka-Ping Yee] Example 1: Exception Chaining. As has been previously discussed, the information from an exception can be lost when the handling of the exception runs into a problem. It is often helpful to preserve the original reason for the problem. [example deleted] This problem is

Re: [Python-Dev] with use case: exception chaining

2005-05-12 Thread Ka-Ping Yee
On Thu, 12 May 2005, Guido van Rossum wrote: [Ka-Ping Yee] Example 1: Exception Chaining. As has been previously discussed, the information from an exception can be lost when the handling of the exception runs into a problem. It is often helpful to preserve the original reason for the