I just submitted a patch to fix test_urllib2 and test_cookielib. In the process of fixing them I came across something that looks like an inconsistency in the base64 module.
Right now the base64 module uses bytes for everything. That is, a value passed to b64encode() must be bytes, and the base64 encoded response is also in bytes. Shouldn't it operate more like expat, with the stuff to be encoded is bytes and the encoded form is a string? It seems more natural if the encoded value is a string since base64 encoding is a way of encoding data so that it fits in US-ASCII. Thanks, -joe -- Joe Gregorio http://bitworking.org _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
