execute file interactively

Peter Hansen peter at engcorp.com
Sun Feb 24 15:21:34 EST 2002


Jason wrote:
> 
> When using the Python interpreter interactively, how can I execute a
> file, so I can use the function definitions and data defined in it
> interactively.

'python -i filename.py' might be of some help.

Use 'python -h' to learn what that would do.



More information about the Python-list mailing list