Re: [Cython] Infer types and array.pxd

2020-08-02 Thread Oliver Haas
Hello, - Yes, I prefer to work with infer_types = False most of the time. I can see how this might be rare, so in general this isn't an important issue. - I think the best solution would be that compiler directives like "infer_types" should not propagate into the cimported files at all, but rather

Re: [Cython] Infer types and array.pxd

2020-08-02 Thread da-woods
https://github.com/cython/cython/issues/1071 On 02/08/2020 18:23, Stefan Behnel wrote: Am 2. August 2020 17:02:39 MESZ schrieb da-woods: I'm not convinced that compiler directives like "infer_types" should propagate into the cimported files at all. It seems reasonable to me that these should b

Re: [Cython] Infer types and array.pxd

2020-08-02 Thread Stefan Behnel
Am 2. August 2020 17:02:39 MESZ schrieb da-woods: > I'm not convinced that compiler directives like "infer_types" should > propagate into the cimported files at all. > > It seems reasonable to me that these should be controlled by the author > of the pxd file, not by the eventual cimporter. I agr

Re: [Cython] Infer types and array.pxd

2020-08-02 Thread da-woods
I'm not convinced that compiler directives like "infer_types" should propagate into the cimported files at all. It seems reasonable to me that these should be controlled by the author of the pxd file, not by the eventual cimporter. On 02/08/2020 14:18, Stefan Behnel wrote: Oliver Haas schr

Re: [Cython] Infer types and array.pxd

2020-08-02 Thread Stefan Behnel
Oliver Haas schrieb am 02.08.20 um 13:44: > The array.pxd ( > https://github.com/cython/cython/blob/master/Cython/Includes/cpython/array.pxd) > requires infer_types = True when cimported. Is there a reason not to > explicitly type the variable op as array in the lines 134 and 141? The return type

[Cython] Infer types and array.pxd

2020-08-02 Thread Oliver Haas
Hello everyone, The array.pxd ( https://github.com/cython/cython/blob/master/Cython/Includes/cpython/array.pxd) requires infer_types = True when cimported. Is there a reason not to explicitly type the variable op as array in the lines 134 and 141? Regards Oliver __