Roland Hedberg wrote:

> Can an instance of a class in a module, in any simple way find out which
> other classes that exists in said module ?

set(v for v in globals().values() if inspect.isclass(v) and v.__module__ ==
__name__)

Peter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to