[XML-SIG] Pyexpat error handling

Paul Prescod paul@prescod.net
Mon, 07 Feb 2000 19:15:11 -0600

uche.ogbuji@fourthought.com wrote:
> If I'm following correctly, we often run into this problem with C/Python
> call-backs.  We usually pass back an error-code that we can use to generate a
> custom exception.  

Okay, but can you distinguish the TypeError generated from a bad arglist
from a regular TypeError in the code? If it actually got into the code
then you have a decent traceback and I'd rather not blow it away.

> I suppose adding a traceback entry would be another
> approach.  I'm curious as to how well that would work.

Me too.

 Paul Prescod  - ISOGEN Consulting Engineer speaking for himself
"If I say something, yet it does not fill you with the immediate
burning desire to voluntarily show it to everyone you know, well then,
it's probably not all that important."
    - http://www.bespoke.org/viridian/