[Chicago] Walking a class tree using dir

Carl Karsten carl at personnelware.com
Wed Aug 17 16:08:18 CEST 2011


On Wed, Aug 17, 2011 at 8:35 AM,  <skip at pobox.com> wrote:
>
>    >> Is there any utility that will walk through the class tree? What I
>    >> mean as follows
>
> Have you looked at the standard module pyclbr?  Been around for a coon's
> age.  Note also that, in general, a class does not know its subclasses.  You
> need to build the inheritance graph bottom up.

Start with locals() and go down, then the root of the tree will end up
at the bottom, were tree roots are normally found :)

-- 
Carl K


More information about the Chicago mailing list