*** Stuff deleted
Wanted to give you an update. It is working now. Thank you
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
> Actually, I started off with a dictionary with a bunch of parameters. To
> give you some background, I writing my
> first GUI, and using the parameters in a dictionary to control what box the
> GUI displays next. So, it looks
> something that looks like this:
>
> data={'position':'middle',
>
On 1/18/07, Danny Yoo <[EMAIL PROTECTED]> wrote:
> Rather than storing your data as variables, you could store it in a
> dictionary. Then you can dynamically access data however you like..
Suggesting a dictionary here is right.
** Stuff deleted about why using variables of variables is bad **
> Rather than storing your data as variables, you could store it in a
> dictionary. Then you can dynamically access data however you like..
Suggesting a dictionary here is right.
The technique in the original poster's question is deprecated and widely
known to be a Bad Idea in Perl. See Mark
On 19/01/07, Tino Dai <[EMAIL PROTECTED]> wrote:
> Hi Everybody,
>
> Is there a way to do variables of variables in python. For example in
> perl:
>
> $foo = 'bar'
> $$foo = '5'
>
> and $bar will have a value of 5. I have been search high and low for a
> simple way to do this in python?
In th
Hi Everybody,
Is there a way to do variables of variables in python. For example in
perl:
$foo = 'bar'
$$foo = '5'
and $bar will have a value of 5. I have been search high and low for a
simple way to do this in python?
-Thanks,
Tino
___
Tutor mai