[Pyrex] pyrexembed: How to make a method which returns a struct

Lenard Lindstrom len-l at telus.net
Tue May 23 04:03:33 CEST 2006


RoomConnections is a C structure. A python method returns a python 
object. It cannot return a C structure. To do that you will need a 
wrapper extension type for RoomConnections.

Lenard Lindstrom
<len-l at telus.net>

On 22 May 2006 at 22:52, Martin Dobiasch wrote:

> >Use "cdef RoomConnections getRoomConnections(..."
> >
> >Or look through the mail archives of this list to find other ways of doing the
> >thing you might be trying to do here.
> 
> If I use cdef the function is not in the class.
> It works but the function is the not a member of the class
> 
> 
> 
> _______________________________________________
> Pyrex mailing list
> Pyrex at lists.copyleft.no
> http://lists.copyleft.no/mailman/listinfo/pyrex
> 





More information about the Pyrex mailing list