At 11:50 PM 9/15/2010 +0200, Dirkjan Ochtman wrote:
On Wed, Sep 15, 2010 at 21:18, P.J. Eby <[email protected]> wrote:
> If I were to offer a suggestion to a PEP author or dictator wanting to get
> something out ASAP, it would probably be to create a compromise between the
> "flat" model (my personal favorite) and the mod_wsgi model, as an addendum
> to PEP 333. Â Specifically:
>
> * leave start_response/write in play (ala mod_wsgi)
The alternative is returning a three-tuple status, headers,
content-iterable, right?
I would definitely prefer just returning a three-tuple instead of the
crappy start_response callback that returns a write callable. It makes
applications easier to write, and the unified model should also make
server implemation easier. It also combines nicely with yield from in
some cases.
I would prefer it too (which is why the "flat" model is my favorite),
but I think it would be easier to get a quick consensus for something
that allows apps to be more mechanically ported from 2.x to 3.x.
That's why I said, "offer a suggestion to ... get something out ASAP". ;-)
_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com