<div dir="ltr">On Tue, Feb 26, 2013 at 9:00 PM, Albert-Jan Roskam <span dir="ltr"><<a href="mailto:fomcl@yahoo.com" target="_blank">fomcl@yahoo.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im"> <br>
> The core developers are too busy to be hand-holding a newbie who<br>
> doesn't know any Python,<br>
<br>
</div>Well, in a way they *can*: I find it very inspiring to read the source code of Python (the .py files), though I don't do this as often as I should.<br>
<br>
What I like about R: if I do 'print(func)' (or fix(func)), it prints the source code of the function. It would be cool if Python had something similar. Instead Python prints the not-so-informative <function func at 0xa82fae4><br>


<div class=""><div class="h5"><br></div></div></blockquote><div><br></div><div style>I don't think you'd want the generic 'print' to do this (though repr() might be a good candidate). In any case, IPython can do it with %psource: <a href="http://ipython.org/ipython-doc/rel-0.10.2/html/interactive/tutorial.html#explore-your-objects">http://ipython.org/ipython-doc/rel-0.10.2/html/interactive/tutorial.html#explore-your-objects</a> </div>

</div></div></div>