Re: Module import information

2006-03-21 Thread Eric White
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

Re: Module import information

2006-03-21 Thread Steve Holden
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

Re: Module import information

2006-03-21 Thread Eric White
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

Re: Module import information

2006-03-21 Thread Peter Hansen
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

Module import information

2006-03-21 Thread Eric White
List: Is it possible to determine the name of the module that invoked import from within the imported module? Thanks, Eric -- http://mail.python.org/mailman/listinfo/python-list