Re: [pygccxml-development] Force bp::no_init
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-09-21 17:49:06
|
On 9/21/06, Kevin Bluck <kev...@gm...> wrote: > Roman Yakovenko wrote: > > Foo = mbuilder.class_( "Foo" ) > > constructors = Foo.constructors() > > for c in constructors: > > if not c.is_copy_constructor: > > Foo.remove_declaration( c ) > > > Thanks, that does work. > > Here is the class function I refactored it into: > > def force_no_init(self): > for c in [ c for c in self.constructors() if not > c.is_copy_constructor ]: > self.remove_declaration( c ) Cool. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |