Convert string to command..

Steven D'Aprano steve at
Fri Oct 19 00:21:53 CEST 2007

On Thu, 18 Oct 2007 14:05:34 -0300, Sebastian Bassi wrote:

> On 10/18/07, Adam Atlas <adam at> wrote:
>> Use the builtin function "eval".
> What is the difference with os.system()?


eval() evaluates Python expressions like "x.append(2+3)".

os.system() calls your operating system's shell with a command.


More information about the Python-list mailing list