[Chicago] Walking a class tree using dir

Brantley Harris deadwisdom at gmail.com
Wed Aug 17 01:28:09 CEST 2011


Not that I'm aware of.  But this would be a good exercise for
learning, or rather trivial for most intermediate pythoners.

On Tue, Aug 16, 2011 at 2:07 PM, Joshua Herman <zitterbewegung at gmail.com> wrote:
> Is there any utility that will walk through the class tree? What I
> mean as follows
>
> Given an input of a class. Lets call it Idiot
> Idiot has three subclasses. Dunce , Troll and __init__
> Dunce and Troll both have associated methods also.
>
>
> The output would be such
>
> idiot --> Dunce, Troll
> Dunce --> Talk
> Troll -> Make fun of python listserv
>
> Is there a python program that would walk it for me and generate a
> graph or a text output of all the dir's
>
>
>
> ---Profile:---
> http://www.google.com/profiles/zitterbewegung
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>


More information about the Chicago mailing list