[Python-3000] string C API
"Martin v. Löwis"
martin at v.loewis.de
Thu Sep 14 23:34:34 CEST 2006
Nick Coghlan schrieb:
> Only the first such call on a given string, though - the idea is to use
> lazy decoding, not to avoid decoding altogether. Most manipulations
> (len, indexing, slicing, concatenation, etc) would require decoding to
> at least UCS-2 (or perhaps UCS-4).
Ok. Then my objection is this: What about errors that occur in decoding?
What happens if the bytes are not meaningful in the presumed encoding?
ISTM that raising the exception lazily (which seems to be necessary)
would be very confusing.
More information about the Python-3000