[C++-sig] Code generation bug in pyplusplus

Roman Yakovenko roman.yakovenko at gmail.com
Tue Jun 13 10:40:19 CEST 2006

On 6/13/06, Niall Douglas <s_sourceforge at nedprod.com> wrote:
> Back onto getting the python bindings for TnFOX working again.


> I'm using the latest from SVN.

It has same functionality and bugs ( :-) ) as 0.8.0 version

> Note the difference? FXWindow::defaultPadding() has an extra () after
> it. It seems pyplusplus only makes this mistake when it's an
> expression eg; when multiplied by 4 as above.

I agree that this is a bug, but this is GCC-XML bug. If you will take
a look on generated xml file you will find that all "defaultPadding"
have extra (). pygccxml
aware of such bug ( and some other ) and fixes them. In this case it can do
nothing. Fortunately you have the way to fix the bug:

mb = module_builder_t( ... )
constr = mb.constructor( 'FXPrimaryButton'
                                         , arg_types=[None]*number of
arguments )

constr.arguments[x].default_value = new default value

If the query, I wrote, does not work for you, you will have to refine it.
You can read more about "query interface" here:


Roman Yakovenko
C++ Python language binding

More information about the Cplusplus-sig mailing list