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=
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 gl
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?
>>>
>>
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 t
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
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.p