Re: Is there a way to display source code for Python function?

2014-10-03 Thread Viet Nguyen
On Thursday, October 2, 2014 10:34:15 PM UTC-7, Viet Nguyen wrote: Hi, When I am debug mode, is there some command which will help display the source code for a Python function of interest? Much like you'd use info proc to display contents of Tcl proc. Thanks, Viet I tried

Re: Is there a way to display source code for Python function?

2014-10-03 Thread Viet Nguyen
On Thursday, October 2, 2014 10:47:28 PM UTC-7, Ian wrote: On Thu, Oct 2, 2014 at 11:34 PM, Viet Nguyen vhnguy...@yahoo.com.dmarc.invalid wrote: Hi, When I am debug mode, is there some command which will help display the source code for a Python function of interest? Much like

Re: Is there a way to display source code for Python function?

2014-10-03 Thread Peter Otten
Viet Nguyen wrote: On Thursday, October 2, 2014 10:34:15 PM UTC-7, Viet Nguyen wrote: Hi, When I am debug mode, is there some command which will help display the source code for a Python function of interest? Much like you'd use info proc to display contents of Tcl proc.

Re: Is there a way to display source code for Python function?

2014-10-03 Thread Viet Nguyen
On Friday, October 3, 2014 12:48:08 AM UTC-7, Peter Otten wrote: Viet Nguyen wrote: On Thursday, October 2, 2014 10:34:15 PM UTC-7, Viet Nguyen wrote: Hi, When I am debug mode, is there some command which will help display the source code for a Python function

Re: Is there a way to display source code for Python function?

2014-10-03 Thread Mark Lawrence
On 03/10/2014 09:16, Viet Nguyen wrote: [snip normal google stuff] Would you please access this list via https://mail.python.org/mailman/listinfo/python-list or read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing double line spacing and single line

Is there a way to display source code for Python function?

2014-10-02 Thread Viet Nguyen
Hi, When I am debug mode, is there some command which will help display the source code for a Python function of interest? Much like you'd use info proc to display contents of Tcl proc. Thanks, Viet -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to display source code for Python function?

2014-10-02 Thread Ian Kelly
On Thu, Oct 2, 2014 at 11:34 PM, Viet Nguyen vhnguy...@yahoo.com.dmarc.invalid wrote: Hi, When I am debug mode, is there some command which will help display the source code for a Python function of interest? Much like you'd use info proc to display contents of Tcl proc. Thanks, Viet