I don't know of any existing well-developed tool, take a
look at the "inspect" module from 2.1.

There are a number of introspection tricks you can do using
various hidden variables of objects, classes, etc. take a
look at attributes starting with func_, co_, and im_. The
book "Python Programming Patterns" has a few examples of
walking these relations, inheritance, etc. I'll take a look
in it later today, if there's something particularily
useful I'll let you know.

Enjoy,

Luke

--- Edmund Lian <[EMAIL PROTECTED]> wrote:
> This is a bit off topic, but... does anybody know if
> there is anything out
> there that can help inspect a live Python app? For
> example, given an
> instance of an object, list its methods, attributes, and
> base classes, show
> which methods were inherited and from where, etc.?
> Something like this
> would sure make it easier to understand complex
> frameworks like webware...
> 
> ...Edmund.
> 
> 
> _______________________________________________
> Webware-discuss mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/webware-discuss


=====
------------------
Reference Counting Garbage Collection:
Look out philosophy majors, things really DO
cease to exist when no one is looking at them!
------------------

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to