lo que podes hacer es usar locals() o globals depende x = 1 print locals() locals()["x"] = 2 print "x=",x ------------ próxima parte ------------ Se ha borrado un adjunto en formato HTML... URL: <http://mail.python.org/pipermail/python-es/attachments/20140817/7b7e35c9/attachment.html>