Lars Gullik Bjønnes wrote:
Georg Baum <[EMAIL PROTECTED]> writes:
| Lars Gullik Bjønnes wrote:
|
| > Why a separate from_ascii really? If it is ascii, then it is also
| > utf-8.
|
| Sure. I made it separate because that makes the intention very clear: If we
| know that it is ASCII we don't need a more costly utf8 conversion. And
| from_ascii is not supposed to go away as from_utf8 is.
If it is ascii then the utf8 conversion is not costly...
Supposedly...
Conversion to/from ascii is just a simple cast. Conversion to/from utf8
involves multiple vector constructions, data copying, iconv conversion,
vector destructions and, at the end conversion to docstring...
Abdel.