<br><br><div class="gmail_quote">On Sat, Oct 22, 2011 at 12:49 PM, Warren Weckesser <span dir="ltr"><<a href="mailto:warren.weckesser@enthought.com">warren.weckesser@enthought.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi all,<br><br>ipython is doing some magic with the output of 'type(a)' (using 0.11.rc1 in EPD):<br><br>In [1]: a = 1<br><br>In [2]: type(a)<br>Out[2]: int<br><br>In [3]: str(type(a))<br>Out[3]: "<type 'int'>"<br>


<br>In [4]: repr(type(a))<br>Out[4]: "<type 'int'>"<br><br>The output in line 2 is nicer, but it makes it appear that the builtin 'type' behaves in a way that it does not.  My attempts (possibly too brief) to find documentation or discussion of this feature have not been fruitful.  Can anyone point me to the relevant docs, or mailing list discussions?  Thanks.<br>

</blockquote><div><br><br>Of course, three minutes after sending that email, I find the '%pprint' command for toggling pretty-printing.  That's enough to answer my question.<br><br>Warren<br><br><br> <br></div>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><font color="#888888">
<br>Warren<br><br>
</font></blockquote></div><br>