Re: [pygccxml-development] pygccxml querying
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2008-11-01 18:01:55
|
On Sat, Nov 1, 2008 at 5:41 PM, Paul Melis <pyp...@as...> wrote: > Sort of, but applied to arguments, e.g. > > for mf in main_ns.member_functions(arg_types=lambda d: 'blah' in > d.decl_string): > # do something with mf > > But this doesn't seem to work... try this: def my_query( f ): for arg in f.arguments: if <<<your logic>>>( arg.type ): return True else: if <<<your logic>>>( f.return_type ): return True else: return False decls = mb.global_ns( my_query ) HTH -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |