[prev in list] [next in list] [prev in thread] [next in thread]
List: python-ideas
Subject: Re: [Python-ideas] Lossless bulletproof conversion to unicode (backslashing)
From: anatoly techtonik <techtonik () gmail ! com>
Date: 2015-05-29 8:10:53
Message-ID: CAPkN8xKE1Q9kKj4kxBJV41ghUZB5G4skXcOzn2+-3HdQYgDqeg () mail ! gmail ! com
[Download RAW message or body]
On Wed, May 27, 2015 at 6:28 PM, Paul Moore <p.f.moore@gmail.com> wrote:
> On 26 May 2015 at 19:30, anatoly techtonik <techtonik@gmail.com> wrote:
>> In real world you have to deal with broken and invalid
>> output and UnicodeDecode crashes is not an option.
>> The unicode() constructor proposes two options to
>> deal with invalid output:
>>
>> 1. ignore - meaning skip and corrupt the data
>> 2. replace - just corrupt the data
>
> There are other error handlers, specifically surrogateescape is
> designed for this use. Only in Python 3.x admittedly, but this list is
> about future versions of Python, so that's what matters here.
Forwarded message to python-list and now I have a thread
schizophrenia. I read it like python-list is also about Python 3 and
got really mad about that. I was a click away from sending me
into the ban list again. =)
Ok. Closing thread in python-idea. This needs to be reopened
when the thread is about Python 4 (which should be all about
improving user experience and assessment of the results).
--
anatoly t.
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic