"eval" function

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Sun Jun 22 15:24:53 EDT 2003


Eirik wrote:
> How can I do what I would do like this:
> 
> set a 12
> set b 144
> eval a*a == b
> 
> in Tcl?
> --

I don't understand the question (please rephrase it...).
But the Python equivalent of the three statements above probably is:

a=12
b=144
a*a==b


You could have guessed that, no?

--Irmen





More information about the Python-list mailing list