On 27 Feb 2010 03:33:57 GMT Steven D'Aprano
<st...@remove-this-cybersource.com.au> wrote:

> exec "'myPrefix_turquoise' = 42"
> 
Not quite:

In [1]: exec "'myPrefix_turquoise' = 42"
------------------------------------------------------------
   File "<string>", line 1
SyntaxError: can't assign to literal (<string>, line 1)


I think you meant:

exec "myPrefix_turquoise = 42"


/W

-- 
INVALID? DE!

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to