Carlos Pita schrieb am 06.04.2015 um 00:49:
> f and g below should behave identically, shouldn't them?
>
> import cython
>
> cdef struct Point:
> int x
> int y
>
> def f():
> return Point(x=10, y=10)
>
> def g():
> cdef Point p = Point(x=10, y=10)
> return p
Yes, they shoul
Hi all,
f and g below should behave identically, shouldn't them?
import cython
cdef struct Point:
int x
int y
def f():
return Point(x=10, y=10)
def g():
cdef Point p = Point(x=10, y=10)
return p
But then f won't compile:
Cannot interpret dict as type 'Python object'
Di