Poll on Eval in Python
nobody at nowhere.com
Tue Oct 20 18:30:25 CEST 2009
On Wed, 14 Oct 2009 23:48:11 +0200, Kazimir Majorinc wrote:
>> (note: exec in python is more in spirit of eval then C-style exec
> I thought about that, but decided not to ask about it
> in poll, because I wanted to compare opinions on eval
> specifically, not on all similar features.
One language's "eval" isn't the same as another's. E.g. there's a big
difference between Lisp's "eval" (which takes an s-expression as an
argument) and an "eval" which takes a string as an argument.
The former is fine; the latter should be prohibited by law, and preferably
by international treaty.
More information about the Python-list