Exceptions, when and who?

Gordon McMillan gmcm at hypernet.com
Wed Apr 5 16:41:21 CEST 2000


Arinté  wrote:

> When and why would python could throw an exception in an embedded app?

For any of the reasons that non-embedded Python might 
throw an exception.

> I am not getting the exception on the c side but in the python code and
> I can't figure out why.
> 
> If I set the Error String in the c code when and who should clear that
> error?  How would you clear it in python, in c I know you use
> PyErr_Clear (right?).

Catch the exception.

- Gordon




More information about the Python-list mailing list