Stackless python and microthreads

Ville Vainio ville at spammers.com
Sat May 15 17:31:00 EDT 2004


>>>>> "Michele" == Michele Simionato <michele.simionato at poste.it> writes:

    Michele> of learning Zope TAL/TALES/METAL, which I do not like
    Michele> that much; I would rather prefer to generate HTML pages
    Michele> with Lisp macros and use real s-expressions instead of
    Michele> XML/HTML, but I can't :-(

What would you do with macros? The resulting s-exprs would still need
to be evaluated to get the html, so the performace wouldn't be
better...

And you can use s-exprs in python too:

page = [
[ head ,
 [ title, "my page"] ],
[ body,
 [ heading, "welcome to my page"],
 [ para , "paragraph1 blah blah"]
 [ para , "paragraph2 more blah blah "]]
]

Further elaboration on the idea at

http://www.students.tut.fi/~vainio24/pysexpr/

-- 
Ville Vainio   http://tinyurl.com/2prnb



More information about the Python-list mailing list