[Tutor] Printing the code of a function
Kent Johnson
kent37 at tds.net
Mon Dec 29 21:05:24 CET 2008
On Sun, Dec 28, 2008 at 8:49 PM, wormwood_3 <wormwood_3 at yahoo.com> wrote:
> Hello all,
>
> This might be trivially easy, but I was having a hard time searching on it
> since all the component terms are overloaded:-) I am wondering if there is a
> way to print out the code of a defined function.
If the source code is available try inspect.getsource().
Kent
More information about the Tutor
mailing list