E&S CVS Commit: PyProtocols - Fixed C code sometimes re-raising the wrong error traceback. It seems that

pje at eby-sarna.com pje at eby-sarna.com
Fri Aug 22 18:03:01 EDT 2003


Module Name:	PyProtocols
Committed By:	pje
Date:		Fri Aug 22 22:02:33 UTC 2003

Modified Files:
	PyProtocols/src/protocols: _speedups.c _speedups.pyx

Log Message:
Fixed C code sometimes re-raising the wrong error traceback.  It seems that
if you get an error calling C code, and the error isn't handled by Pyrex,
you need to call __Pyx_GetExcValue() to make Pyrex re-raise the right
error.  This problem made it nearly impossible to figure out another issue
I was trying to track down (adapt() not working with ExtensionClass
instances).


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PyProtocols/src/protocols/_speedups.c.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PyProtocols/src/protocols/_speedups.pyx.diff?r1=1.2&r2=1.3

To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 PyProtocols/src/protocols/_speedups.c \
    PyProtocols/src/protocols/_speedups.pyx

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list