Re: [Cython] [Bug] Coercion of struct constructor nodes

2015-04-06 Thread Stefan Behnel
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

[Cython] [Bug] Coercion of struct constructor nodes

2015-04-05 Thread Carlos Pita
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