[Python-3000] PEP 3138- String representation in Python 3000

Raymond Hettinger python at rcn.com
Mon May 19 19:19:06 CEST 2008


[MAL] 
> It's being able to write
> 
>     str.transform('gzip').transform('uu')
> 
> which doesn't require knowledge about the modules doing the actual
> work behind the scenes.

What is the reverse operation for the above example:  str.untransform('uu').untransform('gzip')?

Why can't we use codecs and stick with the usual encode/decode methods?


Raymond


More information about the Python-3000 mailing list