Recently I was looking at python’s shutil
and subprocess
etc… And I started wondering: wouldn’t it be ok to use python instead of e.g. bash?
What am I missing?
2
Convenience of syntax, mostly.
In python, running a process requires subprocess.call(...)
; renaming a file shutil.move()
, etc. Bash syntax is much more direct for those tasks.
Yes, Python is a great language, but the explicit syntax to execute (for bash) simple tasks is going to get in the way of doing day-to-day work real fast.
8