Indicative Python prints
<p>I would like it if there was some way to generate a more indicative python prints: when printing some value, not only the result will be printed out,
but also the expression that got me that result.</p>

<p>For example, lets say I have:</p>

<pre><code>&gt;&gt;&gt; x = 1
</code></pre>

<p>Then, for printing x and its type, we get:</p>

<pre><code>&gt;&gt;&gt; print x ; print type(x)
1
&lt;type 'int'&gt;
</code></pre>

<p>I would like to get somthing like:</p>

<pre><code>&gt;&gt;&gt; print x ; print type(x)
x: 1
type(x): &lt;type 'int'&gt;
</code></pre>

<p>I've tried using locals(), inspect module, but I couldn't get this result.
Any id
Thanks.</p>
