[Python-Dev] Decoding incomplete unicode (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Thu Aug 19 20:58:07 CEST 2004
- Previous message: [Python-Dev] Decoding incomplete unicode
- Next message: [Python-Dev] Decoding incomplete unicode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Walter Dörwald wrote:
1) The current implementation does not really support the stateful API, because trailing incomplete byte sequences lead to errors.
Correct.
2) The current file API is not really convenient for decoding when the input is not read for a stream.
I don't see this problem. It is straight-forward to come up with a file-like object that converts the data from whatever source into a stream. If it wasn't a byte stream/string eventually, there would be no way to meaningfully decode it.
Regards, Martin
- Previous message: [Python-Dev] Decoding incomplete unicode
- Next message: [Python-Dev] Decoding incomplete unicode
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]