I found a builtin function called "execfile" that seems to suite my
needs quite well. The import function is less applicable.
Thanks for your time.On 3/21/06, Steve Holden <[EMAIL PROTECTED]> wrote:
Eric White wrote:> Peter:>> Thanks for the reply. Consider the following situation:>> A set of va
Eric White wrote:
> Peter:
>
> Thanks for the reply. Consider the following situation:
>
> A set of variable names is defined along with a list of possible values
> for each. A second set of variable names is defined along with an
> expression for generating a value for each. For each possi
Peter:
Thanks for the reply. Consider the following situation:
A set of variable names is defined along with a list of possible values
for each. A second set of variable names is defined along
with an _expression_ for generating a value for each. For each
possible permutation of variables
Eric White wrote:
> Is it possible to determine the name of the module that invoked import
> from within the imported module?
Almost anything is possible in Python. On the other hand, some things
are probably impractical, and others ill-advised. Perhaps you can
describe your requirements, *wh