At Wednesday 6/4/2005 14:57, * William wrote:

HOW -- or, is it possible -- to execute the an assignment statement from a string?

Try 'exec'

>>> a=1
>>> b=2
>>> exec 'a=b+3'
>>> a
5


Gabriel Genellina
Softlab SRL


_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to