list of class initiations ?

S

stef mientki

hello,

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: ()

within 1 file would be enough.

thanks,
Stef Mientki
 
M

Marc 'BlackJack' Rintsch

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,588
Members
45,093
Latest member
Vinaykumarnevatia00

Latest Threads

Top