A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005457.html below:

[Python-Dev] Docs for string methods ?

[Python-Dev] Docs for string methods ? [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/



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4