python vs. lisp (whereis quote?)
Brian Pedersen
brian.pedersen at mail.danbbs.dk
Tue Jul 20 08:44:43 EDT 1999
More information about the Python-list mailing list
Tue Jul 20 08:44:43 EDT 1999
- Previous message (by thread): python vs. lisp (whereis quote?)
- Next message (by thread): python vs. lisp (whereis quote?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 !
- Previous message (by thread): python vs. lisp (whereis quote?)
- Next message (by thread): python vs. lisp (whereis quote?)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list