On Fri, 16 Nov 2007 13:20:59 +0100, stef mientki wrote: > Is there a way to create a hierarchical list of class headers, including > the parameters. > What I mean (I'm not a programmer) is something like this: > > <class name and ancestor> <init parameters> > class Block ( t_BaseShape ): (self, Pos = [10,10] ): > class t_BaseShape(Shape): (self, x=20, y=20, x2=90, y2=90, > type='rect' ): > class Shape(ShapeEvtHandler): (self, x=[], y=[]): > class ShapeEvtHandler: ()
Take a look at the `inspect` module. Should be possible to build something with those functions. Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list