equivalent of source command in tcl for python

Ralf Schoenian ralf at schoenian-online.de
Thu Mar 19 05:42:42 CET 2009

mark.collier at 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

Ralf Schoenian

More information about the Python-list mailing list