[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Modules pyexpat.c,2.12,2.13
Mark Hammond
MarkH@ActiveState.com
Fri, 25 Aug 2000 11:56:10 +1000
Andrew writes:
> On Thu, Aug 24, 2000 at 02:57:46PM -0700, Fred L. Drake wrote:
> >Remove the Py_FatalError() from initpyexpat(); the Guido has decreed
> >that this is not appropriate.
>
> So what is going to catch errors while initializing a module? Or is
> PyErr_Occurred() called after a module's init*() function?
Yes! All errors are handled correctly (as of somewhere in the 1.5 family,
I believe)
Note that Py_FatalError() is _evil_ - it can make your program die without
a chance to see any error message or other diagnostic. It should be
avoided if at all possible.
Mark.