In message
<[EMAIL PROTECTED]>, Kay
Schluehr wrote:
> If someone had solved the hard problem of finding a less
> cumbersome way of writing sys.stdout.write(...) ...
I don't see what the big deal is. I regularly write things like
sys.stdout.write \
(
"<INPUT TYPE=\"RADIO\" NAME=\"%(name)s\""
" ID=\"%(name)s[%(value)s]\" VALUE=\"%(value)s\"%(checked)s>"
"<LABEL FOR=\"%(name)s[%(value)s]\">%(title)s</LABEL>\n"
# using LABEL lets user click on text to select button
%
{
"name" : EscapeHTML(Name),
"value" : EscapeHTML(Value),
"title" : Title,
"checked" : ("", " CHECKED")[Checked],
}
)
--
http://mail.python.org/mailman/listinfo/python-list