A critique of cgi.escape
Brian Quinlan
brian at sweetapp.com
Tue Sep 26 11:43:47 EDT 2006
Jon Ribbens wrote:
> In article <mailman.698.1159283878.10491.python-list at python.org>, Brian Quinlan wrote:
>> A summary of this pointless argument:
>
> Your summary seems pretty reasonable, but please note that later on,
> the thread was not about cgi.escape escaping (or not) quote
> characters (as described in your summary), but about Fredrik arguing,
> somewhat incoherently, that it should have to take character encodings
> into consideration.
And, of course, about you telling people that their explanations are not
good enough :-)
BTW, I am curious about how you do unit testing. The example that I used
in my summary is a very common pattern but would break in cgi.escape
changed it's semantics. What do you do instead?
Cheers,
Brian
More information about the Python-list
mailing list