Re: [pygccxml-development] need help with query
Brought to you by:
mbaas,
roman_yakovenko
From: Matthias B. <ba...@ir...> - 2006-03-15 12:38:30
|
Roman Yakovenko wrote: > f1 = filter(....) > f2 = filter(...) > > mb = module_builder_t(...) > mb.classes( OrFilter( [f1,f2] ) ) > > but rather: > > mb.classes( lambda decl: f1(decl) or f2(decl) ) > > I could be wrong, but in this case he will not learn OrFilter. If we > implement your idea > in a different way, then user can write next line > > mb.classes( f1 | f2 ) So you prefer this last line over the above two ways, right? I do agree with you and this is already how you can use my filter classes... :) (By the way, as I see it, using the filter classes directly is already an advanced feature anyway. The "normal" user would just use the convenience arguments of the query methods (which are converted into filter classes internally)) - Matthias - |