Function returning a struct cannot be declared nogil #1713

Open
symbolique opened this Issue May 24, 2017 · 1 comment

Comments

Projects
None yet
2 participants

symbolique commented May 24, 2017 edited

Example:

cdef struct Structure:
    double x

cdef Structure build() nogil:
    return Structure(0.0)

symbolique changed the title from Function returning a struct uses refnanny and cannot be declared nogil to Function returning a struct uses cannot be declared nogil May 24, 2017

symbolique changed the title from Function returning a struct uses cannot be declared nogil to Function returning a struct cannot be declared nogil May 24, 2017

Contributor

robertwb commented Jul 9, 2017

The bug is actually due to Structure (0.0) looking like a Python call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment