On Tue, 25 Feb 2014 08:33:53 +1000 Nick Coghlan <ncogh...@gmail.com> wrote: > As far as use cases go, as someone else mentioned, the main one is likely > to be binary logging and error reporting formats, as it becomes a quick and > easy way to embed a backslash escaped string.
That's a fringe use case, though. Also, your binary logging format probably has a well-defined character set that's not necessarily ASCII (perhaps UTF-8), so using the proposed "%a" is sub-optimal and potentially confusing (if lots of non-ASCII characters get escaped as \uxxxx). > However, my interest is more > in providing an obvious way to do it and in minimising the differences > between text and binary interpolation. That sounds very theoretical. Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com