Interactive Shell?
Paul Prescod
paul at prescod.net
Mon Feb 2 00:42:21 EST 2004
Andrew Burton wrote:
>...
>
> Which is the best was to use Python: from the interactive shell, as a scripting
> language, or as the Python.h library with C? Is the interactive shell there for
> anything beyond prototyping code?
I would say that the vast majority of all Python use is as a scripting
language using the form:
python foo.py
The interactive interpreter shell has no memory from session to session
so you lose your work all of the time.
Wrapping your Python program in C is an extra step that is typically
only necessary when you have a C code base that you are trying to extend.
Paul Prescod
More information about the Python-list
mailing list