s.decode('utf-8') vs. unicode(s, 'utf-8')

Alexander Belchenko bialix at ukr.net
Sun Aug 16 14:52:12 BST 2009


As I know some code in bzr uses conversion from utf-8 to unicode (e.g. dirstate?).
Recently there is interesting discussion in comp.lang.python that shows unicode(s, 'utf-8') is
faster than decode.

http://groups.google.com/group/comp.lang.python/browse_thread/thread/314a3043ea63319f/

Maybe this will be useful to know for bzrlib.




More information about the bazaar mailing list