Josiah Carlson wrote: > I would agree that zip is questionable, but 'uu', 'rot13', perhaps 'hex', > and likely a few others that the two of you may be arguing against > should stay as encodings, because strictly speaking, they are defined as > encodings of data. They may not be encodings of _unicode_ data, but > that doesn't mean that they aren't useful encodings for other kinds of > data, some text, some binary, ...
To support them, the bytes type would have to gain a .encode method, and I'm -1 on supporting bytes.encode, or string.decode. Why is s.encode("uu") any better than binascii.b2a_uu(s) Regards, Martin _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com