Novel Thoughts on Scripting and Languages

James Huang judoscript at hotmail.com
Thu Jan 9 00:23:01 EST 2003


grante at visi.com (Grant Edwards) wrote in message news:<3e1c7267$0$26174$a1866201 at newsreader.visi.com>...
> 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?"

I am sorry I answered to a wrong illusion -- I was comparing
[os.]system("ls...") to my copy example which is more sophisticated.
Sorry for the confusion and please don't think I am totally insane. :)
-James




More information about the Python-list mailing list