Re: baffling error-handling problem

2005-07-28 Thread Scott David Daniels
Chris Fonnesbeck wrote: > I thought I knew how to do error handling in python, but apparently I > dont. I have a bunch of code to calculate statistical likelihoods, and > use error handling to catch invalid parameters. For example, for the > bernoulli distribution, I have: > > def bernoulli_li

Re: baffling error-handling problem

2005-07-28 Thread Michael Hudson
Chris Fonnesbeck <[EMAIL PROTECTED]> writes: > I thought I knew how to do error handling in python, but apparently I > dont. I have a bunch of code to calculate statistical likelihoods, and > use error handling to catch invalid parameters. For example, for the [...] > bernoulli distribution, I h

baffling error-handling problem

2005-07-28 Thread Chris Fonnesbeck
I thought I knew how to do error handling in python, but apparently I dont. I have a bunch of code to calculate statistical likelihoods, and use error handling to catch invalid parameters. For example, for the bernoulli distribution, I have: def bernoulli_like(self, x, p, name='bernoulli'):