[Cython] Issue with function annotations
Lisandro Dalcin
dalcinl at gmail.com
Wed Sep 27 08:42:35 EDT 2017
$ cython --version
Cython version 0.27
$ cat tmp.pyx
def f() -> (list, list):
return [], []
$ cython tmp.pyx
Error compiling Cython file:
------------------------------------------------------------
...
def f() -> (list, list):
^
------------------------------------------------------------
tmp.pyx:1:12: C struct/union member cannot be a Python object
Error compiling Cython file:
------------------------------------------------------------
...
def f() -> (list, list):
^
------------------------------------------------------------
tmp.pyx:1:12: C struct/union member cannot be a Python object
--
Lisandro Dalcin
============
Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/
4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 0109
Thuwal 23955-6900, Kingdom of Saudi Arabia
http://www.kaust.edu.sa
Office Phone: +966 12 808-0459
More information about the cython-devel
mailing list