C API : setting the message of an exception

Benoit Dejean bnet at ifrance.com
Fri Nov 14 14:07:54 EST 2003


(sorry for my english)

when an excpetion is raised (like Overflow), before i return NULL, i'd
like to modify the message held by the exception. I use PyErr_SetString,
but i don't know how to retreive the current message

excaption is raised -> extending error message -> raising exception

thank you




More information about the Python-list mailing list