bash Vs python ??

William Park opengeometry at yahoo.ca
Wed Nov 5 03:41:05 EST 2003


Ville Vainio <ville.spammehardvainio at spamtut.fi> wrote:
> William Park <opengeometry at yahoo.ca> writes:
> 
>> It depends.  My guess is Bash would be more suitable for "automated
>> testing scripts", since you'll be calling lots of utilities.
> 
> os.system, os.popen family, pexpect...
> 
> In python it's much easier to process the output and produce the input
> of the utilities.
> 
> Bash is good for throwaway one liners, Python is good for scripts that
> you *gasp* save to a file and might also execute later.

This is total misrepresentation that can only come from a recent
newcomer to Python. :-)  Python has data structures because it's general
programming language.  But, Bash is much more expressive and convenient
when it comes to calling utilities.

-- 
William Park, Open Geometry Consulting, <opengeometry at yahoo.ca>
Linux solution for data management and processing. 




More information about the Python-list mailing list