Hm.. actually cls.get_members(access='public') helps solve my problem, so
never mind.
2008/9/15 Gustavo Carneiro <gjc...@gm...>
> Hi,
>
> I have some code like this:
>
>
> for member in cls.get_members():
> if member.name.startswith('__'):
> continue
> if member.access_type not in ['public']:
> continue
>
> But I am getting an exception:
>
> if member.access_type not in ['public']:
> AttributeError: 'typedef_t' object has no attribute 'access_type'
>
> I am not sure then how to find out the access type of a typedef defined
> inside a class. Any ideas?
>
> --
> Gustavo J. A. M. Carneiro
> INESC Porto, Telecommunications and Multimedia Unit
> "The universe is always one step beyond logic." -- Frank Herbert
>
--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert
|