[Cython] Cython 0.17 beta 3 released - release candidate

Stefan Behnel stefan_ml at behnel.de
Sun Aug 26 18:47:53 CEST 2012


Christoph Gohlke, 26.08.2012 17:54:
> On 8/26/2012 2:41 AM, Stefan Behnel wrote:
>> A patch would essentially look like this:
>>
>> diff -r 18fed0dec20e Cython/Compiler/Code.py
>> --- a/Cython/Compiler/Code.py   Sun Aug 26 00:54:01 2012 +0200
>> +++ b/Cython/Compiler/Code.py   Sun Aug 26 11:39:29 2012 +0200
>> @@ -893,6 +893,8 @@
>>               code.write('\n#line 1 "cython_utility"\n')
>>           code.putln("")
>>           code.putln("/* Runtime support code */")
>> +        code.putln("#pragma auto_inline(off)")
>> +        code.putln("")
>>
>>       def finalize_main_c_code(self):
>>           self.close_global_decls()
> 
> Thanks. I just tried this. The `#pragma auto_inline(off)` line appears
> after the MemoryView code and has no effect on that part.

Argh. That's too bad - the memory view code is actually compiled from
Cython code and gets injected at the tree level, not by the code generator.

I would like to avoid an impact on user code by this pragma, so I think
we'll have to find a way to inject the pragma into the code stream somehow...

Stefan



More information about the cython-devel mailing list