Re: [Cython] Safer exception handling

2018-09-19 Thread Robert Bradshaw
On Wed, Sep 19, 2018, 5:04 PM Stefan Behnel wrote: > Robert Bradshaw schrieb am 17.09.2018 um 15:44: > > One of the pain points in Cython is that one must explicitly annotate > > non-object returning functions with except clauses. Would it be worth > > trying to change the default here, making ex

Re: [Cython] Safer exception handling

2018-09-19 Thread Stefan Behnel
Robert Bradshaw schrieb am 17.09.2018 um 15:44: > One of the pain points in Cython is that one must explicitly annotate > non-object returning functions with except clauses. Would it be worth > trying to change the default here, making exception-suppressing opt-in > rather than opt-out? > > There

Re: [Cython] Safer exception handling

2018-09-18 Thread Robert Bradshaw
On Tue, Sep 18, 2018, 10:12 AM Jeroen Demeyer wrote: > On 2018-09-17 15:44, Robert Bradshaw wrote: > > One of the pain points in Cython is that one must explicitly annotate > > non-object returning functions with except clauses. Would it be worth > > trying to change the default here, making exce

Re: [Cython] Safer exception handling

2018-09-18 Thread Jeroen Demeyer
On 2018-09-17 15:44, Robert Bradshaw wrote: One of the pain points in Cython is that one must explicitly annotate non-object returning functions with except clauses. Would it be worth trying to change the default here, making exception-suppressing opt-in rather than opt-out? Just to clarify thi

Re: [Cython] Safer exception handling

2018-09-18 Thread Jeroen Demeyer
On 2018-09-17 15:44, Robert Bradshaw wrote: One of the pain points in Cython is that one must explicitly annotate non-object returning functions with except clauses. Would it be worth trying to change the default here, making exception-suppressing opt-in rather than opt-out? There are a couple o

Re: [Cython] Safer exception handling

2018-09-17 Thread Stefan Behnel
Robert Bradshaw schrieb am 17.09.2018 um 15:44: > One of the pain points in Cython is that one must explicitly annotate > non-object returning functions with except clauses. Would it be worth > trying to change the default here, making exception-suppressing opt-in > rather than opt-out? > > There

[Cython] Safer exception handling

2018-09-17 Thread Robert Bradshaw
One of the pain points in Cython is that one must explicitly annotate non-object returning functions with except clauses. Would it be worth trying to change the default here, making exception-suppressing opt-in rather than opt-out? There are a couple of open questions, e.g. * What would the synt