[Python-Dev] Decoding incomplete unicode
Walter Dörwald
walter at livinglogic.de
Tue Aug 24 22:04:25 CEST 2004
Martin v. Löwis wrote:
> Walter Dörwald wrote:
>
>> OK, let's come up with a patch that fixes the incomplete byte
>> sequences problem and then discuss non-stream APIs.
>>
>> So, what should the next step be?
>
> I think your first patch should be taken as a basis for that.
> Add the state-supporting decoding C functions, and change
> the stream readers to use them.
OK, I've updated the patch.
> That still leaves the issue
> of the last read operation, which I'm tempted to leave unresolved
> for Python 2.4.
Agreed! This shouldn't be done for Python 2.4.
> No matter what the solution is, it would likely
> require changes to all codecs, which is not good.
True, but the changes should be rather trivial for most.
Bye,
Walter Dörwald
More information about the Python-Dev
mailing list