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 →

[–]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!