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

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue, 12 Jun 2001 22:01:39 +0200


>     MvL> What is the type of parts[3] here? If it is a plain string,
>     MvL> it is already possible:
> 
>     >> 'SGVsbG8=\n'.decode("base64")
>     MvL> 'Hello'
> 
> But only in Python 2.2a0 currently, right?

Exactly, since MAL's last patch. If people think that byte strings
must behave exactly as Unicode strings, I'd rather prefer to back out
this patch instead of adding unicode.decode. Personally, I think the
status quo is fine and should not be changed.

Regards,
Martin