cython int not working

0 views
Skip to first unread message

genadij

unread,
Feb 26, 2015, 3:11:21 PM2/26/15
to anac...@continuum.io
Hi guys,

I just started with cython, and I have a problem with int arguments:


def helloworld(int n):
return n

I am on Anaconda python3 win7 64bit system.
distutils build and install works, but when I call halloworld with integer in IPython I get:

TypeError: __int__ returned non-int (type int)

If I change int declaration to double helloworld is working.

Any suggestions?
Reply all
Reply to author
Forward
0 new messages