Dag Sverre Seljebotn, 26.01.2010 19:57:
> Robert B. wrote:
>> If there's anything of special note that you think should be in the
>> release notes, please submit a blurb to this thread, especially if it
>> doesn't show up at
>> http://trac.cython.org/cython_trac/query?group=component&milestone=0.12.1
>>   (and in that case making a ticket about it would probably be
>> worthwhile as well).
> 
> Well, I feel I'm mostly in the dark as to what exactly is in 0.12.1 with
> respect to type inference, so I expect some others are too

Hmm, I guess the problem here is that the 0.12.x interface to type
inference is a little stupid. It's off by default, you can write

    # cython: infer_types=None

to enable safe type inference, and

    # cython: infer_types=True

to enable complete (potentially unsafe, including ints etc.) inference. It
only really makes sense in 0.13, where you use True/False to enable or
disable complete type inference, and safe type inference is otherwise
enabled by default.

Apart from that, it's all there in 0.12.1, and especially safe type
inference is worth testing (if only to make sure 0.13 won't break your code
when it comes out).

As discussed before, the safe mode enables type inference for all Python
object types and prefers C double values over Python's float.

Stefan
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to