Re: [pygccxml-development] improving user experience
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-07-20 17:55:42
|
On 7/20/06, Matthias Baas <ba...@ir...> wrote: > Hi, > > I've noticed that in r317 the location where warnings are generated was > moved to creator_t. But with this modification I don't get any warning > at all anymore which is not correct. > I had a look at the source and only got so far that the list "decls" > (after calling make_flatten()) in _prepare_decls() only contains the > stuff that is directly in the main namespace (in my case, these are > mainly the SDK classes and a few functions). The actual methods of the > classes are missing which is why I get no warning message. > Yes. Read carefully the code :-) #leave only declarations defined under namespace, but remove namespaces ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ decls = filter( lambda x: not isinstance( x, declarations.namespace_t ) \ and isinstance( x.parent, declarations.namespace_t ) , decls ) That is why member functions was not in the list. I am sorry for introducing such stupid bug. I think I fixed it. I added unittest. Sorry. Can you check the behaviuor now? Thank you. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |