[Web-SIG] bytes, strings, and Unicode in Jython, IronPython, and CPython 3.0

Alan Kennedy py-web-sig at xhaus.com
Wed Sep 15 20:56:25 CEST 2004


[Phillip J. Eby]
 > But after looking at all of your comments and thinking this over a
 > bit, I'm thinking that there's a simpler way to specify the intent
 > of my  proposal; something like:
 >
 > """On Python platforms where the 'str' or 'StringType' type is
 > Unicode-based (e.g. Jython, IronPython, Python 3000, etc.), all
 > strings must contain only characters representable in ISO-8859-1
 > encoding (\u0000 through \u00FF, inclusive).  It should be considered
 > a fatal error for an application to supply strings containing any
 > other Unicode character, whether the string is in the 'headers', the
 > 'status', supplied to 'write()', or is produced by the application's
 > returned iterable."""

Great: Says it all, in a neat and concise way. Nice job!

+1

Regards,

Alan.



More information about the Web-SIG mailing list