Michael Foord <mich...@voidspace.org.uk> added the comment:

I would prefer to try str(...) first and only attempt to convert to unicode and 
do the backslash replace if the str(...) call fails.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8313>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to