[Python-3000] string C API
"Martin v. Löwis"
martin at v.loewis.de
Wed Sep 13 20:09:42 CEST 2006
Jim Jewett schrieb:
> Simply delegate such methods to a hidden per-encoding subclass.
>
> The UTF-8 methods will indeed be complex, unless the solution is
> simply "someone called indexing/slicing/len, so I have to recode after
> all."
>
> The Latin-1 encoding will have no such problem.
I'm not so much worried about UTF-8 or Latin-1; they are fairly trivial.
Efficiency of such methods for multi-byte encodings would be
dramatically slow.
Regards,
Martin
More information about the Python-3000
mailing list