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 _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com