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 should.

https://github.com/cython/cython/commit/c25a6167fbc839f2af4e0a01e40792d827492450

Stefan

_______________________________________________
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel

Reply via email to