Nick Coghlan added the comment:

Patch looks good to me, too.

As far as Amaury's question goes, isn't the general reverse operation the same 
as for the existing backslashreplace handler?

That is, decode with the appropriate ASCII compatible encoding (since ASCII 
compatibility is needed for the escape sequences to be valid), then run the 
result through ast.literal_eval?

(I'll grant we don't currently provide guidance on reversing backslashreplace 
either, but addressing that sounds like a separate question from this change)

----------

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

Reply via email to