fetching class by name

Geoffrey Gerrietts geoff at homegain.com
Fri Feb 2 14:38:52 EST 2001


I think I know the answer to this question before I ask it, but I
feel like I need to ask anyway.

Is there an easier way to retrieve a class object by name than
doing a manual lookup through the __dict__ of every module in
sys.modules?

I think maybe I'm just spoiled by the way objective c gives you a
cute little utility function to do this for you. Still, looking
it up manually seems extraordinarily costly.

Thanks,
--G.

---
Geoff Gerrietts <geoff at homegain.com>
Software Engineer, HomeGain.com
510-655-0800 x4320
 




More information about the Python-list mailing list