<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">> I would use %r instead of %s for both fields here. Non-ASCII characters<br>
> and unseen whitespace are at least two reasons to overuse %r in<br>
> debug/error messages instead of %s.<br>
<br>
</div>Actually, you want %a for non-ASCII messages to be escaped.<br>
(however, there's hardly any reason to worry about it when it comes to<br>
stdlib module names)<br></blockquote></div><br>I wasn't aware of '%a' at all? It doesn't appear to be documented, and Python 2.6 doesn't support it:<br><br> ValueError: unsupported format character 'a' (0x61) at index 1<br>
<br>If it's new, it should at least be documented in library/stdtypes with the other formatting operations.<br><br>Eli<br><br></div>