June 21, 2010
8:04 p.m.
On Jun 21, 2010, at 01:24 PM, P.J. Eby wrote:
OTOH, one potential problem with having the encoding on the bytes object rather than the ebytes object is that then you can't easily take bytes from a socket and then say what encoding they are, without interfering with the sockets API (or whatever other place you get the bytes from).
Unless the default was the "I don't know" marker and you were able to set it after you've done whatever kind of application-level calculation you needed to do. -Barry