Try the trace module in the standard library:
http://docs.python.org/library/trace.html
http://www.doughellmann.com/PyMOTW/trace/

- Nathaniel
On Mar 5, 2012 3:27 PM, "Chao YUE" <chaoyue...@gmail.com> wrote:

> Dear all,
>
> Sorry this is not the good place to ask but I think there must be someone
> who has done this before.
> Is there any way to see the execution of python script line by line as the
> verbose model of shell script?
> this can be done either in ipython or by running the python script in a
> shell script?
>
> thanks to all,
>
> cheers,
>
> Chao
>
> --
>
> ***********************************************************************************
> Chao YUE
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> UMR 1572 CEA-CNRS-UVSQ
> Batiment 712 - Pe 119
> 91191 GIF Sur YVETTE Cedex
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
>
> ************************************************************************************
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to