[Cython] User Question - Questions and 'Cannot convert to Python Object'...

Santiago Aguiar santiago.aguiar at gmail.com
Fri Mar 13 18:08:10 CET 2009


Stefan Behnel wrote:
> Why don't you reference the struct itself here? Do you really need these
> fields to be public? 
>   
I could, but in that case I would need to write getters/setters for each 
attribute. In my code, almost all the struct fields are relevant, since 
they represent fields in the protocol PDU which I need to provide to 
python code.
> There is some special support for struct assignments from dicts, you can
> try that. I have no idea where that's documented, though. Robert?
>   
Any pointers will be welcomed!

Thanks!

Best regards,

Santiago.


More information about the Cython-dev mailing list