<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">&gt; I would use %r instead of %s for both fields here.  Non-ASCII characters<br>


&gt; and unseen whitespace are at least two reasons to overuse %r in<br>
&gt; debug/error messages instead of %s.<br>
<br>
</div>Actually, you want %a for non-ASCII messages to be escaped.<br>
(however, there&#39;s hardly any reason to worry about it when it comes to<br>
stdlib module names)<br></blockquote></div><br>I wasn&#39;t aware of &#39;%a&#39; at all? It doesn&#39;t appear to be documented, and Python 2.6 doesn&#39;t support it:<br><br>    ValueError: unsupported format character &#39;a&#39; (0x61) at index 1<br>

<br>If it&#39;s new, it should at least be documented in library/stdtypes with the other formatting operations.<br><br>Eli<br><br></div>