* 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
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 --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