Re: [Cython] Safer default exception handling with return type annotations?

2017-09-05 Thread Robert Bradshaw
On Tue, Sep 5, 2017 at 10:44 PM, Stefan Behnel wrote: > Robert Bradshaw schrieb am 06.09.2017 um 07:21: >> I'm not a huge fan of behaving differently depending on what syntax >> was used to annotate the return type--I'd rather they be 100% aliases >> of each other. > > Regarding this bit - I alrea

Re: [Cython] Safer default exception handling with return type annotations?

2017-09-05 Thread Stefan Behnel
Robert Bradshaw schrieb am 06.09.2017 um 07:21: > I'm not a huge fan of behaving differently depending on what syntax > was used to annotate the return type--I'd rather they be 100% aliases > of each other. Regarding this bit - I already chose to implement some differences for annotation typing. M

Re: [Cython] Safer default exception handling with return type annotations?

2017-09-05 Thread Robert Bradshaw
On Mon, Sep 4, 2017 at 12:32 PM, Stefan Behnel wrote: > Hi all, > > since PEP 484 type annotations are scheduled for the next release now, I > wonder if we should take the opportunity to change the defaults for the > exception handling of typed cdef functions. > > Currently, if you define a functi