class / module introspection?

bruno.desthuilliers at gmail.com bruno.desthuilliers at gmail.com
Wed Apr 2 18:44:53 EDT 2008


On 2 avr, 22:04, Brian Munroe <brian.e.mun... at gmail.com> wrote:
> On Apr 2, 12:33 pm, "bruno.desthuilli... at gmail.com"
>
> <bruno.desthuilli... at gmail.com> wrote:
>
> > Why not do the import here, so you store a real module instead of a
> > name ?
>
> Right now I'm still in the prototyping phase and haven't really
> thought everything through.  I needed the names because I am
> populating a GUI selection list element.


import os
print os.__name__
'os'

>  I also assumed that I could
> then lazy load the modules I needed...

Ok, that's something else. I had (wrongly) assumed you wanted to load
all modules anyway.

> Thanks for the help though, you've gotten me past my first of many
> (I'm sure) hurdles!

You're welcome.




More information about the Python-list mailing list