471,334 Members | 1,372 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,334 software developers and data experts.

list of class initiations ?

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
Nov 16 '07 #1
1 875
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
Nov 16 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Tony Johansson | last post: by
5 posts views Thread by Darryl B | last post: by
8 posts views Thread by JustSomeGuy | last post: by
9 posts views Thread by zacks | last post: by
5 posts views Thread by David Longnecker | last post: by
12 posts views Thread by isliguezze | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.