Recently I was looking at python's
subprocess etc... And I started wondering: wouldn't it be ok to use python instead of e.g. bash?
What am I missing?
Software Engineering Stack Exchange is a question and answer site for professionals, academics, and students working within the systems development life cycle. It only takes a minute to sign up.Sign up to join this community
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.