In <[EMAIL PROTECTED]>, tmp123 wrote:
> We have very big files with python commands (more or less, 500000
> commands each file).
>
> It is possible to execute them command by command, like if the
> commands was typed one after the other in a interactive session?
Take a look at the `code` module in the standard library:
In [31]: code?
Type: module
Base Class: <type 'module'>
String Form: <module 'code' from '/usr/lib/python2.4/code.pyc'>
Namespace: Interactive
File: /usr/lib/python2.4/code.py
Docstring:
Utilities needed to emulate Python's interactive interpreter.
Ciao,
Marc 'BlackJack' Rintsch
--
http://mail.python.org/mailman/listinfo/python-list