By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,050 Members | 1,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,050 IT Pros & Developers. It's quick & easy.

list of class initiations ?

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.