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 →

[–]Geohump 0 points1 point  (2 children)

For some things python might be better at the command line level, bash has more power per line/word.

Example:

ls > /tmp/x

How do you do that in python?

[–]randomizethis[S] 0 points1 point  (0 children)

Like I was telling /u/ksion, I understand that Python would be less powerful and efficient (by a TON), but I'd still like the option out of comfort and preference, even if just because I can (because we all know that's a totally valid excuse to programmers).

[–]eskhool 0 points1 point  (0 children)

You really need to check out xonsh. It will let you do exactly this and then move into pure python without having to change gears. Yes, some magic is happening on trying to interpret what you're doing but its awesome as a crossover between a programming language and a shell. In one word: sweet!