[Python-Dev] Re: [Python-checkins] python/dist/src/Python compile.c,2.250,2.251

M.-A. Lemburg mal@lemburg.com
Wed, 07 Aug 2002 16:58:12 +0200

Martin v. L=F6wis wrote:
> "M.-A. Lemburg" <mal@lemburg.com> writes:
>>>+ #ifndef Py_USING_UNICODE
>>>+ 	abort();
>>>+ #else
>>Shouldn't this be a call to Py_FatalError() with a proper
>>error message ?
> What is the guideline for when to use abort, and when to use
> Py_FatalError?

Looking at the code for Py_FatalError(), I'd say always use
this instead of calling abort directly, except maybe for
situations where you don't want anything printed.

Marc-Andre Lemburg
CEO eGenix.com Software GmbH
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/