Re: [pygccxml-development] Re: Two problems
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2006-05-31 19:58:18
|
On 5/31/06, Lakin Wecker <lak...@gm...> wrote: > Sorry, my mistake, the following code produces an exception: > > This code doesn't work, it returns 0 results: > > matrix4 = ogre_ns.calldefs(return_type="const Ogre::Matrix4&") > > matrix4.call_policies = call_policies.return_value_policy( > > call_policies.reference_existing_object ) > Traceback (most recent call last): > File "generate_code.py", line 140, in ? > set_call_policies (mb) > File "generate_code.py", line 118, in set_call_policies > matrix4 = ogre_ns.calldefs(return_type="Ogre::Matrix4& const") > File "/home/lakin/Documents/non-backup/Software/Compile/pygccxml/pygccxml_dev/pygccxml/declarations/scopedef.py", > line 384, in calldefs > , allow_empty=allow_empty) > File "/home/lakin/Documents/non-backup/Software/Compile/pygccxml/pygccxml_dev/pygccxml/declarations/scopedef.py", > line 295, in _find_multiple > found = matcher_module.matcher.find( matcher, decls, False ) > File "/home/lakin/Documents/non-backup/Software/Compile/pygccxml/pygccxml_dev/pygccxml/declarations/matcher.py", > line 35, in find > return filter( decl_matcher, where ) > File "/home/lakin/Documents/non-backup/Software/Compile/pygccxml/pygccxml_dev/pygccxml/declarations/filters.py", > line 339, in __call__ > if not None is self.return_type \ > File "/home/lakin/Documents/non-backup/Software/Compile/pygccxml/pygccxml_dev/pygccxml/declarations/filters.py", > line 360, in __compare_types > if type_or_str != type.decl_string: > AttributeError: 'NoneType' object has no attribute 'decl_string' Thanks for bug reporting. I think I found it and fixed. I will commit the change in few minutes. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |