Re: Semantics of propagated exceptions

2006-08-01 Thread Thomas Lotze
Sorry for not answering such a long time. It's because my question originated from a discussion within our company which moved out of focus shortly after I posted, and over waiting for some response from them before replying here, I forgot about it. Steve Holden wrote: >> - f might catch E excep

Re: Semantics of propagated exceptions

2006-07-21 Thread Michael J. Fromberger
In article <[EMAIL PROTECTED]>, Thomas Lotze <[EMAIL PROTECTED]> wrote: > Suppose you have a function f which, as part of its protocol, raises some > standard exception E under certain, well-defined circumstances. Suppose > further that f calls other functions which may also raise E. How to best

Re: Semantics of propagated exceptions

2006-07-21 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Thomas Lotze wrote: > I wonder how to solve the following problem the most pythonic way: > > Suppose you have a function f which, as part of its protocol, raises some > standard exception E under certain, well-defined circumstances. Suppose > further that f calls other fun

Re: Semantics of propagated exceptions

2006-07-21 Thread Steve Holden
Thomas Lotze wrote: > Hi, > > I wonder how to solve the following problem the most pythonic way: > > Suppose you have a function f which, as part of its protocol, raises some > standard exception E under certain, well-defined circumstances. Suppose > further that f calls other functions which may

Re: Semantics of propagated exceptions

2006-07-21 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Thomas Lotze wrote: > Suppose you have a function f which, as part of its protocol, raises some > standard exception E under certain, well-defined circumstances. Suppose > further that f calls other functions which may also raise E. How to best > distinguish whether

Semantics of propagated exceptions

2006-07-21 Thread Thomas Lotze
Hi, I wonder how to solve the following problem the most pythonic way: Suppose you have a function f which, as part of its protocol, raises some standard exception E under certain, well-defined circumstances. Suppose further that f calls other functions which may also raise E. How to best disting