__subclasses__

Oren Tirosh oren-py-l at hishome.net
Wed Jun 19 02:51:17 EDT 2002


> The __bases__ and __subclasses__ (and others) are listed in the 'type'
> object:
> 
>     >>> class Foo:
>     ...     pass
>     ...
>     >>> dir(type(type(Foo)))

Type is no longer a function, it is the type object itself.  
You can just dir(type)

	Oren





More information about the Python-list mailing list