list of class initiations ?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Fri Nov 16 09:55:58 EST 2007
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
More information about the Python-list
mailing list