Re: [Python-Dev] Better HTTP 1.1 support in http.server?
On 24 September 2012 19:39, Christian Heimes wrote: > Am 24.09.2012 17:27, schrieb Antoine Pitrou: >> >> Hello, >> >> I was wondering if it would be worth providing better HTTP 1.1 support >> in http.server. The way I envision it, there would be a separate >> HTTP11RequestHandler which would provide: >> >> - a smart wfile with automatic chunk encoding (which relieves the API >> user from manually handling chunk encoding or content length >> calculation) >> - keep-alive enabled by default >> - HTTP 1.1 by default (BaseHTTPRequestHandler defaults to 1.0) >> >> What do you think? > > +1 for 3.4 > > You proposed gave me another idea. What do you think about SPDY support > in the stdlib? It's the next step after HTTP 1.1. Given the rate SPDY is changing, complexity of implementation, and that some prerequisites aren't in place (zlib module needs to support specifying the dictionary), this probably isn't a good idea right away. It's also easy to get a similar effect using a SPDY-capable reverse proxy. > > ___ > Python-Dev mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > http://mail.python.org/mailman/options/python-dev/dw%40botanicus.net ___ 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
Re: [Python-Dev] [Python-checkins] cpython: don't depend on __debug__ because it's baked in at freeze time (issue #16046)
On Wed, Sep 26, 2012 at 1:23 AM, benjamin.peterson wrote: > If debug_override is not None, then it must be a boolean and is taken as > -the value of __debug__ instead. > +the value of bool(sys.flags.optimize) instead. s/bool(sys.flags.optimize)/"not sys.flags.optimize"/? It may be better to just rephrase this sentence entirely to better account for the fact that we're now checking the runtime sys.flags.optimize value rather than the compile time __debug__ value. Cheers, Nick. -- Nick Coghlan | [email protected] | Brisbane, Australia ___ 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
Re: [Python-Dev] [Python-checkins] cpython: don't depend on __debug__ because it's baked in at freeze time (issue #16046)
2012/9/25 Nick Coghlan : > On Wed, Sep 26, 2012 at 1:23 AM, benjamin.peterson > wrote: >> If debug_override is not None, then it must be a boolean and is taken as >> -the value of __debug__ instead. >> +the value of bool(sys.flags.optimize) instead. > > s/bool(sys.flags.optimize)/"not sys.flags.optimize"/? > > It may be better to just rephrase this sentence entirely to better > account for the fact that we're now checking the runtime > sys.flags.optimize value rather than the compile time __debug__ value. Good point; I rephrased it. -- Regards, Benjamin ___ 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
