A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2014-January/131315.html below:

[Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5

[Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5 [Python-Dev] RFC: PEP 460: Add bytes % args and bytes.format(args) to Python 3.5Ethan Furman ethan at stoneleaf.us
Sun Jan 12 22:29:30 CET 2014
On 01/12/2014 12:39 PM, Stephen J. Turnbull wrote:
> Daniel Holth writes:
>
>   > -1 on adding more surrogateesapes by default. It's a pain to track
>   > down where the encoding errors came from.
>
> What do you mean "by default"?  It was quite explicit in the code I
> posted, and it's the only reasonable thing to do with "text data
> without known (but ASCII compatible) encoding or multiple different
> encodings in a single data chunk".  If you leave it as bytes, it will
> barf as soon as you try to mix it with text even if it is pure ASCII!

Which is why some (including myself) are asking to be able to stay in bytes land and do any necessary interpolation 
there.  No resulting unicode, no barfing.  ;)

--
~Ethan~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4