[PyKDE] Modify init/dealloc on structs

Daniele Varrazzo daniele.varrazzo at gmail.com
Wed Jul 12 16:59:23 BST 2006


> > i need to wrap C structures that require some initialization (they
> > must be memsetted to 0) and careful freeing if C-owned (to free
> > aggregate structures as well).

> It's not very well documented but SIP allows you to specify constructors and
> non-virtual destructors for C structs. Both allow %MethodCode.

Thank you very much: it seems to work. I had troubles with the sip
syntax but actually it's the same of c++ classes c'tor and d'tor.

Daniele




More information about the PyQt mailing list