A critique of cgi.escape
Jon Ribbens
jon+usenet at unequivocal.co.uk
Sun Sep 24 20:17:20 EDT 2006
In article <ef5ncc$uus$1 at news.albasani.net>, Georg Brandl wrote:
>> Attributes can be quoted with either single or double quotes. That's what
>> the HTML spec says. cgi.escape doesn't correctly allow for that. Ergo,
>> cgi.escape is broken. QED.
>
> A function is broken if its implementation doesn't match the documentation.
Or if the design, as described in the documentation, is flawed in some
way.
> As a courtesy, I've pasted it below.
>
[...]
>
> Now, do you still think cgi.escape is broken?
Yes.
More information about the Python-list
mailing list