Re: baffling error-handling problem
- From: Michael Hudson <mwh@xxxxxxxxxx>
- Date: Thu, 28 Jul 2005 15:47:26 GMT
Chris Fonnesbeck <fonnesbeck@xxxxxxxxx> 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 have:
> I have no idea how this can happen, given how I have coded this.
> Anyone see what I must be missing?
Is it possible you have two classes called LikelihoodError? One in
__main__, one in some_module_of_yours, maybe.
Cheers,
mwh
--
<bruce> how are the jails in israel?
<itamar> well, the one I was in was pretty nice
-- from Twisted.Quotes
.
- References:
- baffling error-handling problem
- From: Chris Fonnesbeck
- baffling error-handling problem
- Prev by Date: Re: Create a variable "on the fly"
- Next by Date: Re: Why Tcl/Tk?
- Previous by thread: baffling error-handling problem
- Next by thread: Re: baffling error-handling problem
- Index(es):
Relevant Pages
|