[Web-SIG] WSGI for Python 3

Bill Janssen janssen at parc.com
Sat Jul 17 18:25:06 CEST 2010


Chris McDonough <chrism at plope.com> wrote:

> On Sat, 2010-07-17 at 01:33 +0200, Armin Ronacher wrote:
> > Hi,
> > 
> > On 7/17/10 1:20 AM, Chris McDonough wrote:
> >  > Let me know if I'm missing something.
> > The only thing you miss is that the bytes type of Python 3 is badly 
> > supported in the stdlib (not an issue if we reimplement everything in 
> > our libraries, not an issue for me) and that the bytes type has no 
> > string formattings which makes us do the encode/decode dance in our own 
> > implementation so of the missing stdlib functions.
> 
> This is why the docs mention "bytes with benefits" instead (like the
> Python 2 "str" type). The existence of such a type would be the result
> of us lobbying for its inclusion into some future Python 3, or at least
> the result of lobbying for a String ABC that would allow us to define
> our own.

I think the most effective way to lobby here would be to provide the
String ABC and an implementation of "encoded strings", i.e. strings with
an internal representation that's a byte sequence in a particular
encoding.

Bill


More information about the Web-SIG mailing list