A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-June/015355.html below:

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

[Python-Dev] Adding .decode() method to Unicode [Python-Dev] Adding .decode() method to UnicodePaul 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



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