Re: C api and exception handling

2009-11-04 Thread lallous
Thanks for your help Carl as usual. Will go with the getattr override method which is cleaner as you explained. Regards, Elias "Carl Banks" wrote in message news:f02c069c-e536-4c6b-b114-2215aa611...@k17g2000yqh.googlegroups.com... On Nov 2, 7:16 am, "lallous" wrote: Hello, Is there is a w

Re: C api and exception handling

2009-11-02 Thread Carl Banks
On Nov 2, 7:16 am, "lallous" wrote: > Hello, > > Is there is a way, using the Python C api, to install an exception handler > that: > - will be triggered when an exception occurs > - analyze the reason of the exception > - correct the situation and try again (something like exception handling on >

C api and exception handling

2009-11-02 Thread lallous
Hello, Is there is a way, using the Python C api, to install an exception handler that: - will be triggered when an exception occurs - analyze the reason of the exception - correct the situation and try again (something like exception handling on windows where the exception handler can retriev