Re: [Tutor] Variables of Variables

2007-01-23 Thread Tino Dai
*** 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

Re: [Tutor] Variables of Variables

2007-01-22 Thread Danny Yoo
> 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', >

Re: [Tutor] Variables of Variables

2007-01-22 Thread Tino Dai
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 **

Re: [Tutor] Variables of Variables

2007-01-18 Thread Danny Yoo
> 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

Re: [Tutor] Variables of Variables

2007-01-18 Thread John Fouhy
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

[Tutor] Variables of Variables

2007-01-18 Thread Tino Dai
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