[Python-Dev] Adding .decode() method to Unicode
Paul Prescod
paulp@ActiveState.com
Mon, 11 Jun 2001 16:38:55 -0700
"Martin v. Loewis" wrote:
>
>...
>
> I still can see the value. If you think the codec API is good for such
> transformation, why not use it? I.e.
>
> enc,dec,_,_ = codecs.lookup("compress-form-foo")
> s = dec(s)
IMO, there is a huge usability difference between the above and
mystr.decode("base64").
I think that we've done a good job of providing better ways to get at
codecs than the codecs.lookup function. I don't see how this is any
different.
--
Take a recipe. Leave a recipe.
Python Cookbook! http://www.ActiveState.com/pythoncookbook