Re: [Tutor] Introspection (modules and functions)

2005-11-23 Thread Kent Johnson
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 li

Re: [Tutor] Introspection (modules and functions)

2005-11-23 Thread Ewald Ertl
Hi! I quick solution for a name module could be: >>> import os >>> for d in os.__dict__: ... a="os." + d ... if callable( eval(a) ): ... print "Callable %s" % ( eval(a)) but there should also be a recipe on activestate for that problem. I think I've red something in the Pytho

Re: [Tutor] Introspection (modules and functions)

2005-11-23 Thread Frank Moore
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

[Tutor] Introspection (modules and functions)

2005-11-23 Thread Negroup -
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. H