Convert string to command..
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Thu Oct 18 18:21:53 EDT 2007
On Thu, 18 Oct 2007 14:05:34 -0300, Sebastian Bassi wrote:
> On 10/18/07, Adam Atlas <adam at atlas.st> wrote:
>>
>> Use the builtin function "eval".
>
> What is the difference with os.system()?
Everything.
eval() evaluates Python expressions like "x.append(2+3)".
os.system() calls your operating system's shell with a command.
--
Steven.
More information about the Python-list
mailing list