If, as you say, you're on Windows, you ought to check out the interactive IDE that comes with Mark Hammond's PyWin32
. It's available for all versions of Python including 2.6 and 3.1
It has user settable syntax coloring, code completion, automatic indent/dedent, and all the other features of IDLE while being generally slicker, faster and smoother operating and scrolling, etc. It also has a built-in debugger, although I don't use it enough to recommend it.
In addition it makes interactive input of compound statements more like the Python command line window in that it puts three dots (or more precisely, the value of sys.ps2
) in front of continuiation lines:
>>> if x < 0:
... x = 0
... print('Negative changed to zero')
... elif:
The tab key inserts the recommended 4 spaces (user configurable) and backspace will backup and delete 4 spaces so it looks like real tabs.
I've used PyWin32 since Python version 1.5 and can't praise it highly enough.