[Python-3000] PEP 3138- String representation in Python 3000 (original) (raw)

Greg Ewing greg.ewing at canterbury.ac.nz
Thu May 15 10:13:26 CEST 2008


Stephen J. Turnbull wrote:

This discussion isn't about whether it could be done or not, it's about where people expect to find such functionality. Personally, if I can find .encode('euc-jp') on a string object, I would expect to find .encode('gzip') on a bytes object, too.

What I'm not seeing is a clear rationale on where you draw the line. Out of all the possible transformations between a string and some other kind of data, which ones deserve to be available via this rather strange and special interface, and why?

-- Greg



More information about the Python-3000 mailing list