What is a good way to emulate:

from module import xxx
where 'module' is a dynamically generated string?

__import__ ('modulename', fromlist=['xxx'])

seems to be what I want, but then it seems 'xxx' is not placed in globals()
(which makes me wonder, what exactly did fromlist do?)

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

Reply via email to