Re: [Cython] Cython 0.23: long + int == int

2015-08-20 Thread Jakub Wilk
* Stefan Behnel , 2015-08-17, 20:33: $ cat testlong.pyx def f(x): return 0L + x $ python2.6 -c 'import pyximport as p; p.install(); import testlong; print type(testlong.f(42))' I added a long to an int, so I'd expect the result to be a long. [...] I understand that this is not entirely c

Re: [Cython] Cython 0.23: long + int == int

2015-08-17 Thread Stefan Behnel
Jakub Wilk schrieb am 14.08.2015 um 10:41: > $ cython --version > Cython version 0.23 > $ python2.6 --version > Python 2.6.8 > $ cat testlong.pyx > def f(x): >return 0L + x > $ python2.6 -c 'import pyximport as p; p.install(); import testlong; print > type(testlong.f(42))' > > > I added a

[Cython] Cython 0.23: long + int == int

2015-08-15 Thread Jakub Wilk
$ cython --version Cython version 0.23 $ python2.6 --version Python 2.6.8 $ cat testlong.pyx def f(x): return 0L + x $ python2.6 -c 'import pyximport as p; p.install(); import testlong; print type(testlong.f(42))' I added a long to an int, so I'd expect the result to be a long. This work