In article [EMAIL PROTECTED],
Neal Becker [EMAIL PROTECTED] wrote:
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()
On Tue, Jul 1, 2008 at 1:46 PM, Gary Duzan [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED],
Neal Becker [EMAIL PROTECTED] wrote:
What is a good way to emulate:
from module import xxx
where 'module' is a dynamically generated string?
__import__ ('modulename', fromlist=['xxx'])
seems to
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?)
--
On Tue, Jul 1, 2008 at 12:11 PM, Neal Becker [EMAIL PROTECTED] wrote:
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
Guilherme Polo wrote:
On Tue, Jul 1, 2008 at 12:11 PM, Neal Becker [EMAIL PROTECTED] wrote:
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'
On Tue, Jul 1, 2008 at 12:55 PM, Neal Becker [EMAIL PROTECTED] wrote:
Guilherme Polo wrote:
On Tue, Jul 1, 2008 at 12:11 PM, Neal Becker [EMAIL PROTECTED] wrote:
What is a good way to emulate:
from module import xxx
where 'module' is a dynamically generated string?
__import__