[PyKDE] Wrapped classes without constructor

Denis S. Otkidach ods at strana.ru
Tue Jun 7 15:56:57 BST 2005


On Tue, 7 Jun 2005 15:20:40 +0100 (BST)
"Phil Thompson" <phil at riverbankcomputing.co.uk> wrote:

> > I have several classes which shouldn't be initialized by user.  Neither
> > /Abstract/, nor declaring constructor private helps, since in both
> > cases generated class doesn't have destructor, which in my case is
> > mandatory.  I use the following code to clear constructor:
> >
> > %PreInitialisationCode
> >     sipType_MyClass.td_init = 0;
> > %End
> >
> > Is there a better way I've missed?
> 
> What version of SIP? 

$ sip -V
4.2.1 (4.2.1-297)

> The current snapshot *might* be more helpful as there
> have been changes in this area.

Thanks, after upgrade to recent snapshot wrapped class has destructor
with /Abstract/.  But the class is added to module namespace.  Could the
latter be controlled too?

-- 
Denis S. Otkidach
http://www.python.ru/      [ru]




More information about the PyQt mailing list