Re: [PyKDE] Modify init/dealloc on structs

2006-07-12 Thread Daniele Varrazzo
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

Re: Fwd: Fwd: [PyKDE] Qt objects subclasses and __dict__ copies

2006-03-21 Thread Daniele Varrazzo
On 3/22/06, Phil Thompson [EMAIL PROTECTED] wrote: On Tuesday 21 March 2006 10:32 pm, Daniele Varrazzo wrote: On a related topic, Edward Loper reported: Original Message Subject: Introspection of qt classes It appears that all classes in the Python qt module lie

[PyKDE] Qt objects subclasses and __dict__ copies

2006-03-20 Thread Daniele Varrazzo
Hello, i am fixing the documentation pages generated by Epydoc v. 3.0alpha when it deals with PyQt subclasses. Currently such pages are bloated because QObject subclasses receive a copy of the entire superclass in the dict. For example: from qt import * class MyWidget(QWidget): ... pass