Re: Store variable name in another variable

2007-05-01 Thread Diez B. Roggisch
loial schrieb: > OK, I have it working with dictionaries. > > However I have another scenerio : > > I am reading a file containing records like the following : > > > > > .. > .. > > > I need to substitute MYVARIABLE with the current value of MYVARIABLE > in my python script and write the fi

Re: Store variable name in another variable

2007-05-01 Thread 7stud
On May 1, 6:43 am, loial <[EMAIL PROTECTED]> wrote: > OK, I have it working with dictionaries. > > However I have another scenerio : > > I am reading a file containing records like the following : > > > > > .. > .. > > I need to substitute MYVARIABLE with the current value of MYVARIABLE > in my

Re: Store variable name in another variable

2007-05-01 Thread loial
OK, I have it working with dictionaries. However I have another scenerio : I am reading a file containing records like the following : .. .. I need to substitute MYVARIABLE with the current value of MYVARIABLE in my python script and write the file out again. The file may contain many more

Re: Store variable name in another variable

2007-04-26 Thread Laurent Pointal
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Laurent Pointal <[EMAIL PROTECTED]> wrote: >>loial a �crit : >>> I need to store a list of variable names in a dictionary or list. I >>> then later need to retrieve the names of the variables and get the >>> values from the named variables.

Re: Store variable name in another variable

2007-04-26 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Laurent Pointal <[EMAIL PROTECTED]> wrote: >loial a écrit : >> I need to store a list of variable names in a dictionary or list. I >> then later need to retrieve the names of the variables and get the >> values from the named variables. The named variables will alre

Re: Store variable name in another variable

2007-04-26 Thread Laurent Pointal
loial a écrit : > I need to store a list of variable names in a dictionary or list. I > then later need to retrieve the names of the variables and get the > values from the named variables. The named variables will already have > been created and given a value. "Named variables will already have b

Re: Store variable name in another variable

2007-04-26 Thread Larry Bates
loial wrote: > I need to store a list of variable names in a dictionary or list. I > then later need to retrieve the names of the variables and get the > values from the named variables. The named variables will already have > been created and given a value. > > I hope thats clear!!! > > How can