[C++-sig] pyplusplus tutorials & GUI wizard

Roman Yakovenko roman.yakovenko at gmail.com
Tue Feb 7 06:41:25 CET 2006


On 2/6/06, Matthias Baas <baas at ira.uka.de> wrote:
> Roman Yakovenko wrote:
> >> Why don't you just include the header that actually defines the
> >> corresponding class (i.e. "a.h" when wrapping A and "b.h" when wrapping
> >> B)?
> >
> > This is exactly what I do. May be I did not explain my self well.
>
> Do you mean that should already work with the version in cvs? I cannot
> confirm that. Here, pyplusplus adds all headers that were parsed.
>
> >>>> def filter(decl):
> >>>>      return decl.name in [...<a list of class names>...]
> >>>>
> >>>> But now that I come to think about it, I don't understand why this works
> >>>> at all. I noticed that the filter function is also applied to class
> >>>> methods in which case the function returns False. But why are the
> >>>> methods then exposed? (I thought this would be a way to filter out the
> >>>> protected methods, but obviously this is not how it's supposed to work...)
>  >>>
> >>> You found a bug. Thanks. I will fix it.
>  >>[...]
>
> ok, I'll wait until the bug is fixed before I go on with my filtering
> attempts...

May be you missed my previuos letter or I was unclear, but I fixed
"filter" bug and provided explanation how you can use filter.

Here is the link to relevant mail:
http://mail.python.org/pipermail/c++-sig/2006-February/010123.html

> - Matthias -
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>


--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/



More information about the Cplusplus-sig mailing list