Re: [Cython] CF based type inference

2013-06-02 Thread mark florisson
On 2 June 2013 07:22, Stefan Behnel wrote: > mark florisson, 21.05.2013 15:32: >> On 21 May 2013 14:14, Vitja Makarov wrote: >>> >>> def foo(int N): >>> x = 1 >>> y = 0 >>> for i in range(N): >>> x = x * 0.1 + y * 0.2 >>> y = x * 0.3 + y * 0.4 >>> print typeof(x), t

Re: [Cython] CF based type inference

2013-06-02 Thread Nathaniel Smith
On Sun, Jun 2, 2013 at 7:22 AM, Stefan Behnel wrote: > mark florisson, 21.05.2013 15:32: >> On 21 May 2013 14:14, Vitja Makarov wrote: >>> >>> def foo(int N): >>> x = 1 >>> y = 0 >>> for i in range(N): >>> x = x * 0.1 + y * 0.2 >>> y = x * 0.3 + y * 0.4 >>> print ty