python along or bash combined with python (for manipulating files)

Aahz aahz at pythoncraft.com
Sun Oct 18 01:23:24 EDT 2009


In article <38890afc-c542-478a-bbe7-9a63dc6c9bed at j9g2000vbp.googlegroups.com>,
TerryP  <bigboss1964 at gmail.com> wrote:
>
>Very sophisticated scripts are possible using bash and ksh, there is
>even a form of ksh that has tk capabilities! (tksh). The Python and
>Bourne-derived languages are however fundamentally different
>creatures, and use very different data models. You should **not**
>write Python (or Perl) scripts as if they were shell scripts -- doing
>so is very bad practice. When you want a shell script, write a shell
>script. When you write a Python script, write a Python script. It
>really is that simple.

Oh, well, I guess I follow bad practice a lot.  Shame on me.

(That is, I disagree that it's bad practice to use Python as if it were
a straight scripting language, os.system() and all.  I prefer using
Python because it makes it easy to upgrade scripts as needed.)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"To me vi is Zen.  To use vi is to practice zen.  Every command is a
koan.  Profound to the user, unintelligible to the uninitiated.  You
discover truth everytime you use it."  --reddy at lion.austin.ibm.com



More information about the Python-list mailing list