Stackless python and microthreads
Ville Vainio
ville at spammers.com
Sat May 15 19:04:36 EDT 2004
>>>>> "Valentino" == Valentino Volonghi aka Dialtone <dialton3#NOSPAM#.despammed at virgilio.it> writes:
Valentino> And it has stan which is an s-expr-like syntax.
Valentino> Here is a little helloworld example:
Valentino> docFactory = rend.stan(
Valentino> T.html[
Valentino> T.head[
Valentino> T.title['Hello'],
Valentino> ],
Valentino> T.body[
Valentino> T.p['Welcome to the wonderful world of Nevow!'],
Valentino> ],
Valentino> ]
Valentino> )
Just a thought: it would be more s-expr like if it just had the
"function"ish part inside the list in the normal prefix notation:
[T.html,
[T.head,
[T.title, 'Hello']],
[T.body, [T.p, 'Welcome...]]]
In a way this seems slightly clearer (especially the , chars n/w ]
chars seem very suspicous to me.
--
Ville Vainio http://tinyurl.com/2prnb
More information about the Python-list
mailing list