python vs. lisp (whereis quote?)
Brian Pedersen
brian.pedersen at mail.danbbs.dk
Tue Jul 20 08:44:43 EDT 1999
nbecker at fred.net wrote:
>
> One feature of lisp (emacs lisp actually) that I think is pretty cool
> is the "hooks". A hook is basically unevaluated code that will be run
> by eval later.
>
> I suspect python lacks this capability. As I understand it, the only
> similar capability is "eval". But I think eval expects a string,
> which it will then parse. While the capability is similar, having to
> parse a string could be inefficient.
>
> Am I correct that what is missing is the ability to postpone
> evaluation using "quote"?
you could compile() your statement in advance, making the exec() a
little more efficient
--
Brian Pedersen, M.Sc.E.E. /\
DSP Software and Algorithm Development .~. / \ .~.
URL: http://www.danbbs.dk/~kibria/brian/ ~ ~
NOTE: New e-mail address !
More information about the Python-list
mailing list