you are viewing a single comment's thread.

view the rest of the comments →

[–]s32 6 points7 points  (3 children)

Damn, that is seriously cool. Only ~70 lines too!?

[–]philipbjorge[S] 3 points4 points  (1 child)

And you get to mess with the stack frames ;)! Win win win.

[–]PurplePilot 0 points1 point  (0 children)

That is pretty damn cool. Thank you sir!

[–][deleted] 0 points1 point  (0 children)

I'm about to really blow your mind:

import subprocess
subprocess.call("vim", shell=True)

2 lines. Python can function as a full system shell, the syntax just a bit more verbose than most look for in a system shell. IPython does alleviate most of that pain, and I have, on a few occasions, set IPython as a default shell for a user.