J jstier at
Mon Jul 11 01:27:59 CEST 2005

just to follow up. I managed to get it working by having a closer look
at the xxmodules. However, the example does the following

        typedef struct
            PyStructBaseClass  mBase;
            int mValue;
        } PyStructDerivedClass;

Does anything speak agains doing this ?

        typedef struct : public PyStructBaseClass
            int mValue;
        } PyStructDerivedClass;

It seems to work for me. The advantage is that access to the members in
that structure is easier. The .mBase is not needed ....


More information about the Python-list mailing list