Novel Thoughts on Scripting and Languages

Grant Edwards grante at visi.com
Wed Jan 8 13:48:07 EST 2003


In article <52719db8.0301080732.15604813 at posting.google.com>, James Huang wrote:
> Grant Edwards <grante at visi.com> wrote in message news:<slrnb1ncej.n6a.grante at localhost.localdomain>...

>> Then python isn't a scripting language, since it can't do that sort of
>> stuff.  I think.  I don't know what the language above is nor what the
>> example does, but it appears to be manipulating files more-or-less directly
>> the way a shell script does.
>> 
>> Here is how you do an os command in C:
>> 
>>  system("ls -l >foo");
>>  
>> Here is how you do the same thing in Python:
>> 
>>  os.system("ls -l >foo")
>> 
>> Not much difference, eh?
> 
> I'd say quite different even in this example.

How are the two examples above "quite different?"

-- 
Grant Edwards                   grante             Yow!  I hope the
                                  at               "Eurythmics" practice birth
                               visi.com            control...




More information about the Python-list mailing list