[Chicago] Walking a class tree using dir

Joshua Herman zitterbewegung at gmail.com
Wed Aug 17 02:52:23 CEST 2011


I would think it would be useful so I could get like a UML diagram of
all of the python methods etc...


---Profile:---
http://www.google.com/profiles/zitterbewegung





On Tue, Aug 16, 2011 at 6:28 PM, Brantley Harris <deadwisdom at gmail.com> wrote:
> 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
>>
> _______________________________________________
> Chicago mailing list
> Chicago at python.org
> http://mail.python.org/mailman/listinfo/chicago
>


More information about the Chicago mailing list