Getting a list of classes in the current module/auto introspection



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
.



Relevant Pages

  • Re: Newbie... Drinks on me..Wanna say Im sorry.
    ... Iron/Carla wrote: ... > Andy: I've been around rallys and bikers and such to realize the SMYT's ... considered a group of folks drinking beer and telling lies. ... you'll see references to them, or you'll get invited to one. ...
    (rec.motorcycles.harley)
  • Re: Newbie question on amplifers (sorry!)
    ... the scientific evidence was that ampliers couldn't be distinguished from ... Jim gave you the references which you clearly ... Not certain what "Jim gave" that Andy is referring to here. ...
    (uk.rec.audio)
  • Re: How Is This Possible?
    ... Here is a Web page that Andy is crying about: ... And Andy has still not demonstrated a basic knowledge of economics. ... As far as I am concerned, that unargued statement is just ignorant. ... Does Andy look up any of the references I gave in the ...
    (sci.math)
  • Re: How Is This Possible?
    ... Here is a Web page that Andy is crying about: ... And Andy has still not demonstrated a basic knowledge of economics. ... As far as I am concerned, that unargued statement is just ignorant. ... Does Andy look up any of the references I gave in the ...
    (sci.econ)
  • Re: How Is This Possible?
    ... Andy repeats a mistake: ... I state in the post he references that the labor theory of value is ... >>previous thread and comment on where he finds the reference unclear? ... > I have a bachelor's degree with some economics content. ...
    (sci.econ)