Re: Poll on Eval in Python

2009-10-20 Thread Nobody
On Tue, 20 Oct 2009 11:08:00 -0700, TerryP wrote: > On Oct 20, 4:30 pm, Nobody wrote: >> 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. >>

Re: Poll on Eval in Python

2009-10-20 Thread TerryP
On Oct 20, 4:30 pm, Nobody wrote: > 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

Re: Poll on Eval in Python

2009-10-20 Thread Nobody
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 >> functions) > > 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 featu

Re: Poll on Eval in Python

2009-10-14 Thread TerryP
On Oct 14, 9:48 pm, Kazimir Majorinc wrote: > Do you think > it would be better if I asked that? That result would > be significantly different? > Not really. The eval, exec, and compile builtins are more or less related and serve similar purposes, but don't seem to be highly used in Python. Ther

Re: Poll on Eval in Python

2009-10-14 Thread Kazimir Majorinc
On 14.10.2009 17:55, TerryP wrote: And what about exec? (note: exec in python is more in spirit of eval then C-style exec functions) 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. Do you t

Re: Poll on Eval in Python

2009-10-14 Thread Kazimir Majorinc
THE RESULTS OF THE POLLS . Lisp Python Ruby Eval is evil, harmful or at least unnecessary 2 (4.9%) 7 (21.9%) 0 (0.0%) -- Eval is useful but ov

Re: Poll on Eval in Python

2009-10-12 Thread Kazimir Majorinc
On 10.10.2009 5:03, Kazimir Majorinc wrote: I am Lisp programmer and I write an article on issues as macros, fexprs and eval. I want to compare opinions of programmers of various programming languages on eval. If you want to contribute your opinion on eval in Python (or you want to look at resu