[Python-Dev] "data".decode(encoding) ?!

M.-A. Lemburg mal@lemburg.com
Wed, 02 May 2001 20:13:17 +0200

We already have "data".encode(encoding) which encodes the string data
by passing it through the encoder of the given encoding.

Wouldn't it be worthwhile to add direct access to codec decoders
through string methods as well ?

(Note that this addition only makes sense for string objects,
since Unicode cannot be decoded.)

Also, would there be any objections adding some more standard
codecs to the system ? I'm thinking of wrapping the binascii 
module APIs in form of codecs...

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