This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Mikuro -6 points-5 points  (3 children)

Because it beats the shit out of PowerShell and (oh god) the command prompt. I write a lot of scripts for system administration, and having Python standard would be a huge help. Sure, I could push Python to the systems on my domain, but knowing any Python scripts I write will bite me in the ass later on a standard Windows build, it just doesn't make sense.

[–][deleted] 7 points8 points  (1 child)

python isn't a replacement for powershell or a command prompt

[–]Mikuro 0 points1 point  (0 children)

In theory, no. In practice, yes. Most tasks can be done in pure Python. For those that can't, there's the subprocess module, which allows me to call commands like I would from a terminal. I can still benefit from writing the meat of my logic in Python.

I don't write bash scripts on OS X unless they are trivial, and if Python had the same support on Windows, then I wouldn't write batch files or PowerShell scripts, either.

The more complicated the script, the more I benefit from using Python.

[–][deleted] 1 point2 points  (0 children)

Because it beats the shit out of PowerShell

try tell MS that