2

Why is this such a bad idea? (According to many people)

14
  • 2
    Python is a shell. What are you asking? What does "according to many people" mean? Can you provide a link or a reference? Commented Aug 4, 2010 at 22:17
  • 1
    Probably only according to some diehard freaks who must write everything in C ... Commented Aug 4, 2010 at 22:19
  • 1
    it does not have to be c.. c++ is fine too ;) Commented Aug 4, 2010 at 22:21
  • 1
    Well, they already have their own shells. Windows users don't generally use cmd, but it's there. Commented Aug 4, 2010 at 22:24
  • 1
    Python's Shell is extremely difficult compared to Bash Commented Aug 4, 2010 at 22:28

3 Answers 3

3

I don't think it's a bad idea. Lots of people use IPython which is a shell written in Python :)

In fact you may want to base your effort around IPython. scipy does this, for example

Sign up to request clarification or add additional context in comments.

2 Comments

+1: We use Python instead of Bash or CMD.EXE. It's portable.
+1 for IPython. Using IPython with the sh profile (ipython -p sh) works really well as a replacement for bash etc.
0

I've always thought it was quite a cool idea. Last time I got the urge to give it a go I was thinking about a maple-style worksheet interface for Python. Sadly I can't find the very cool Python+GTK+Cairo code for an interactive shell that is out there somewhere, but searching now I did come across a couple of things that might interest you.

Reinteract is very close to what I had in mind.

PyShell is closer to a traditional shell, the source is available and it says on the website that he's seeking help.

Edit: This older question on unix shell written in a reasonable language was a related link and has lots more examples.

Comments

0

Another shell written in Python is hotwire - it has some interesting ideas and a mix of commandline and gui interface. It is written in Python but can let you freely intermix code in sh, python, perl and ruby, plus its own language 'HotWirePipe'.

Unfortunately the main site for it seems to have died, but it is archived in the wayback machine.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.