[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
- Previous message: [Python-3000] PEP 3138- String representation in Python 3000
- Next message: [Python-3000] PEP 3138- String representation in Python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-3000] PEP 3138- String representation in Python 3000
- Next message: [Python-3000] PEP 3138- String representation in Python 3000
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]