When does it matter to use %d over %s when formatting integers to strings in python?
<p>Assuming I don't need padding or other formatting conversion, when does it matter to use %d over %s when printing numbers ?</p>

<p>From the snippet below, there seems to be no difference.</p>

<pre><code>&gt;&gt;&gt; "%d %d"%(12L,-12L)
'12 -12'
&gt;&gt;&gt; "%s %s"%(12L,-12L)
'12 -12'
</code></pre>
