[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Modules pyexpat.c,2.12,2.13 (original) (raw)

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 PyFatalError() from initpyexpat(); the Guido has decreed >that this is not appropriate.

So what is going to catch errors while initializing a module? Or is PyErrOccurred() 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.