[Tutor] [Fwd: Re: from string to variable name]

2006-10-05 Thread Luke Paireepinart
OOPS, forwarding my reply to frank. I accidentally sent it straight to him. ---BeginMessage--- frank h. wrote: why I am not using a dictionary: well I am lazy, I do not want to explicitly construct a dictionary :) You don't have to explicitly construct it. You can add stuff to it. If by

Re: [Tutor] [Fwd: Re: from string to variable name]

2006-10-05 Thread Python
On Thu, 2006-10-05 at 09:17 -0500, Luke Paireepinart wrote: (actually from Frank) I have a parameterized string template, I publish it using print mytemplate % locals() Original post asked to create variable in local namespace from string. so I want to assign a value to a variable whos

Re: [Tutor] [Fwd: Re: from string to variable name]

2006-10-05 Thread Kent Johnson
Python wrote: On Thu, 2006-10-05 at 09:17 -0500, Luke Paireepinart wrote: (actually from Frank) I have a parameterized string template, I publish it using print mytemplate % locals() Original post asked to create variable in local namespace from string. so I want to assign a value to a