[Python-Dev] Adding .decode() method to Unicode

M.-A. Lemburg mal@lemburg.com
Mon, 11 Jun 2001 18:50:11 +0200


I would like to add a .decode() method to Unicode objects
and also enable the builtin unicode() to accept Unicode
object as input.

The .decode() method will work just like the .encode() method
except that it interfaces to the decode API of the codec
in question.

While this may seem useless for the currently available encodings,
it does have some use for codecs which recode Unicode to Unicode,
e.g. codecs which do XML escaping or Unicode compression. 

Any objections ?

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/