robertwb / issues-import-test

0 stars 0 forks source link

union assignments fail in C tuples #85

Closed robertwb closed 8 years ago

robertwb commented 8 years ago

Reported by scoder on 25 Jun 2015 15:02 UTC

cdef union U:
    int x
    double y

cdef (U,) a = ({"x": 1},)

This should work but instead gives a KeyError("y") at runtime.

Migrated-From: http://trac.cython.org/ticket/852

robertwb commented 8 years ago

Modified by scoder on 29 Jun 2015 06:37 UTC

robertwb commented 8 years ago

Comment by scoder on 29 Jun 2015 06:38 UTC Fixed here: https://github.com/cython/cython/commit/09a61d2a129a842acbd6ff60da63ddc8f0ba1687