[Python-Dev] Docs for string methods ?

M.-A. Lemburg mal@lemburg.com
Wed, 05 Jul 2000 12:32:33 +0200

"M.-A. Lemburg" wrote:
> Note that 'abc'.encode('utf8') would fail because the UTF-8
> codec expects Unicod on input to its encode method (hmm, perhaps
> I ought to make the method use the 'u' parser marker instead
> of 'U' -- that way, the method would auto-convert the 'abc'
> string to Unicode using the default encoding and then proceed
> to encode it in UTF-8).

Uhm, forget that last part... 'u' doesn't do auto-conversion :-(
I could add that functionality to the interfaces in _codecmodule.c
directly, though.

Marc-Andre Lemburg
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/