Getting a list of classes in the current module/auto introspection
- From: Andy Leszczynski <leszczynscy@xxxxxxxxxxxxxxx>
- Date: Thu, 28 Apr 2005 07:11:59 -0500
Hi,
I have a following problem. Let's say there is a module which could be imported or run as __main__. It is going to contain hundreds of classes, something like that:
import moduleA from moduleB import *
class A: pass
class B: pass
class C: pass
[...]
I would like to be able to get references (or names) of all of them but excluding stuff from moduleA and module B. Is there any pythonic/elegant way to do that?
Thanks, Andy .
- Follow-Ups:
- Re: Getting a list of classes in the current module/auto introspection
- From: Michele Simionato
- Re: Getting a list of classes in the current module/auto introspection
- Prev by Date: Re: dynamically generating temporary files through python/cgi
- Next by Date: Re: Setting win32 console title from Python
- Previous by thread: Setting win32 console title from Python
- Next by thread: Re: Getting a list of classes in the current module/auto introspection
- Index(es):
Relevant Pages
|