On 17/11/2013 06:31, Steven D'Aprano wrote:
I agree that its a bit of a mess. But only a little bit, and it will be less messy by 3.5 when the codecs solution is re-introduced. Then the codecs.encode and decode functions will be the one obvious way.
For anyone who's interested in the codecs issues see http://bugs.python.org/issue7475 and http://bugs.python.org/issue19543
-- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list