python vs. lisp (whereis quote?)

Lars Marius Garshol larsga at ifi.uio.no
Tue Jul 20 17:37:02 EDT 1999


* alex at somewhere.round.here
|
| Perhaps you can define a do-nothing function that you can then
| change behind the module's back:

You can use functions to emulate hooks and indeed Emacs Lisp does use
this already. However, this only goes part of the way towards the
functionality that quote provides. Python has no obvious equivalent of
things like:

  `(html
     (head
       (title "My web page"))
   
     (body :attrs ((lang "en"))
       (h1 "My web page")
       ,@(produce-page)
       (hr)
       (address "blah blah blah")))

or

  (sql-select 
    `(name age
      :from person
      :where (= id ,id))
      :order-by age)

This and performance are the two things I'm least happy with in Python
right now, I think.

--Lars M.




More information about the Python-list mailing list