[Python-Dev] [Web-SIG] Adding wsgiref to stdlib
Phillip J. Eby
pje at telecommunity.com
Fri Apr 28 23:52:11 CEST 2006
At 04:04 PM 4/28/2006 -0500, Ian Bicking wrote:
>I don't see why not to use prefix matching. It is more consistent with
>the handling of the default application ('', instead of a method that
>needs to be overridden), and more general, and the algorithm is only
>barely more complex and not what I'd call sophisticated. The default
>application handling in particular means that AppMap isn't really useful
>without subclassing or assigning to .default.
>
>Prefix matching wouldn't show off anything else in wsgiref,
Right, that would be taking away one of the main reasons to include it.
To make the real dispatcher, I'd flesh out what I wrote a little bit, to
handle the "default" method in a more meaningful way, including the
redirect. All that should only add a few lines, however.
More information about the Python-Dev
mailing list