Variable definition

Rhodri James rhodri at wildebst.demon.co.uk
Mon Mar 1 18:06:27 EST 2010


On Mon, 01 Mar 2010 18:07:17 -0000, Raphael Mayoraz <maygeo at netplus.ch>  
wrote:

> Thanks for your answer.
> However, your solution changes the key name in the dictionary.
> That's not what I want I need to do. What I want is to define a new
> variable which name is define as a string: 'myPrefx' + key. In the  
> example
> I give, I would get 3 variables:
> myPrefixred = a
> myPrefixgreen = b
> myPrefixblue = c

I repeat my previous question: why?  What problem do you think this will  
solve that will not be more easily solved working with the language rather  
than against it?

-- 
Rhodri James *-* Wildebeeste Herder to the Masses



More information about the Python-list mailing list