Re: equivalent of source command in tcl for python

2009-03-18 Thread alex23
On Mar 19, 2:42 pm, Ralf Schoenian wrote: > mark.coll...@csiro.au wrote: > > Many times I am developing a code in a file and I want to, for > > example, exit at a specific line so that I can test something. In tcl > > you can just put an exit command in and source the file. Is there an > > equival

Re: equivalent of source command in tcl for python

2009-03-18 Thread Paddy3118
On Mar 19, 4:42 am, Ralf Schoenian wrote: > mark.coll...@csiro.au wrote: > > Many times I am developing a code in a file and I want to, for > > example, exit at a specific line so that I can test something. In tcl > > you can just put an exit command in and source the file. Is there an > > equival

Re: equivalent of source command in tcl for python

2009-03-18 Thread Ralf Schoenian
mark.coll...@csiro.au wrote: Many times I am developing a code in a file and I want to, for example, exit at a specific line so that I can test something. In tcl you can just put an exit command in and source the file. Is there an equivalent for python? Thanks, Hi Mark, there is: import sys s

equivalent of source command in tcl for python

2009-03-18 Thread mark . collier
Many times I am developing a code in a file and I want to, for example, exit at a specific line so that I can test something. In tcl you can just put an exit command in and source the file. Is there an equivalent for python? Thanks, -- http://mail.python.org/mailman/listinfo/python-list