Re: [Cython] Bug: operator[] does not respect except +

2014-09-05 Thread Robert Bradshaw
Yes, this is a bug. On Fri, Sep 5, 2014 at 4:05 PM, J Robert Ray wrote: > I looked into at least adding a unit test to verify "except +" behavior for > all operators and I found that aside from operator(), it seems that all > operators ignore "except +". > > I have C++ code that can throw excepti

Re: [Cython] Bug: operator[] does not respect except +

2014-09-05 Thread J Robert Ray
I looked into at least adding a unit test to verify "except +" behavior for all operators and I found that aside from operator(), it seems that all operators ignore "except +". I have C++ code that can throw exceptions inside operator[] and sadly this ends up causing the python interpreter to abor

[Cython] Bug: operator[] does not respect except +

2014-08-08 Thread J Robert Ray
I apologize for not having a working demonstration, but I have found this bug and verified it is still an issue in Cython 0.20.2. No try/catch block is generated for operator[]. In contrast, a try/catch block does get generated for operator(). If it is any use, here is a paraphrasing of the pyx co