Re: [pygccxml-development] mdecl and methods that return values
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-05-30 18:41:16
|
> On 5/30/06, Allen Bierbaum <al...@vr...> wrote: > > Roman Yakovenko wrote: > > >> my_class = my_namespace["MyClass"] > > >> my_class["mymethod"].exclude() > > > > > > > > > exclude does not have return value > > > > The part that causes the problem is the return from ["mymethod"]. It > > doesn't return anything, so the code above ends up calling exclude() on > > NoneType. > > I will check this and will try to fix. Allan, I am sure I am doing something wrong. I created new test case to check the code: http://tinyurl.com/nlama . ( Please take a look on test__getitem__ method. ) I can not reproduce the bug you are talking about :-) May be you have scopedef_t.ALLOW_EMPTY_MDECL_WRAPPER set to True? In this case, if query returns empty exception is not raised. Can you try and reproduce the bug, thanks ? -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |