[Cython] C++ structs, namespace, and auto-conversion of struct to dict

Robert Bradshaw robertwb at gmail.com
Tue Feb 2 03:55:47 EST 2016


On Mon, Feb 1, 2016 at 5:03 PM, Kevin Thornton <krthornt at uci.edu> wrote:
> Hi,
>
> I recently ran into an issue where I found that Cython will not generate
> code to auto-convert structs do dicts if the struct is declared in a C++
> namespace.
>
> The issue has also been discussed here:
> http://stackoverflow.com/questions/29603562/auto-conversion-of-structs-to-dicts-in-cython
>
> While there are obvious workarounds, none of them are ideal.
>
> Is there a road map for addressing this issue?

I simply didn't know about it.

> If not, what would it take
> to do so, and where in the code should one start looking?

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


More information about the cython-devel mailing list