Re: Variables variable

2005-04-19 Thread Ivan Van Laningham
Hi All-- Cameron Laird wrote: > . > I have a few comments on this: Python can do essentially what > PHP does. One means is the getattr() Reinhold cites. > > HOWEVER, it's generally always a mistake to do so. Dictionaries > are simply better. AND THAT'S TRUE IN PHP, too. I

Re: Variables variable

2005-04-19 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: >Adriano Monteiro wrote: >> Hi folks, >> >> Someone know how to make variables variable like in PHP? >> It's something like this: >> >> $a = 'hi' >

Re: Variables variable

2005-04-19 Thread Reinhold Birkenfeld
Adriano Monteiro wrote: > Hi folks, > > Someone know how to make variables variable like in PHP? > It's something like this: > > $a = 'hi' > $$a = 'testing' > echo $hi > 'testing' You are most certainly wanting to use dictionari

Variables variable

2005-04-19 Thread Adriano Monteiro
Hi folks, Someone know how to make variables variable like in PHP? It's something like this: $a = 'hi' $$a = 'testing' echo $hi 'testing' Regards -- Adriano Monteiro Marques www.gopython.com.br [EMAIL PROTECTED] I'm FREE... Are you? (PYTHON po