Re: Catching Python exceptions in C

2008-12-09 Thread Ivan Illarionov
On Dec 8, 9:42 pm, Senthil Kumar [EMAIL PROTECTED] wrote: Hi Pythoneers ! Can somebody give a quick solution? I am trying to raise exceptions in python and trying to handle it in C. I am able to raise exceptions successfully. However could not catch those in C. I am using the following

Re: Catching Python exceptions in C

2008-12-09 Thread Ivan Illarionov
On Dec 9, 12:33 pm, Ivan Illarionov [EMAIL PROTECTED] wrote: On Dec 8, 9:42 pm, Senthil Kumar [EMAIL PROTECTED] wrote: Hi Pythoneers ! Can somebody give a quick solution? I am trying to raise exceptions in python and trying to handle it in C. I am able to raise exceptions successfully.

Catching Python exceptions in C

2008-12-08 Thread Senthil Kumar
Hi Pythoneers ! Can somebody give a quick solution? I am trying to raise exceptions in python and trying to handle it in C. I am able to raise exceptions successfully. However could not catch those in C. I am using the following function to run the python from C: Pyrun_SimpleString(). After the

Re: Catching Python exceptions in C

2008-12-08 Thread Benjamin
On Dec 8, 12:42 pm, Senthil Kumar [EMAIL PROTECTED] wrote: Hi Pythoneers ! Can somebody give a quick solution? I am trying to raise exceptions in python and trying to handle it in C. I am able to raise exceptions successfully. However could not catch those in C. I am using the following

Re: Catching Python exceptions in C

2008-12-08 Thread Gabriel Genellina
En Mon, 08 Dec 2008 16:42:30 -0200, Senthil Kumar [EMAIL PROTECTED] escribió: I am trying to raise exceptions in python and trying to handle it in C. I am able to raise exceptions successfully. However could not catch those in C. I am using the following function to run the python from C: