Negroup - wrote:
>Hi.
>
>My application hosts a module A that contains only a (variable) number
>of functions. In another part of this application I need to know which
>functions are defined inside module A. Initially I thought to use
>__dict__, but along with the functions of module A are listed all the
>builtins too.
>
>
Negroup,
You might want to try this:
custom_list = [x for x in A.__dict__ if not x.startswith('_')]
This should remove the builtins.
Hope this helps,
Frank.
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor