[Tutor] IDLE shell indentation?

Steven D'Aprano steve at pearwood.info
Fri Oct 19 05:44:51 CEST 2012

On 19/10/12 14:23, boB Stepp wrote:

> This does keep the alignment I desire; however, IDLE shell's
> autoindent feature goes away inside the exec function. Further, my
> tab, which is set to 4 spaces, becomes 8 spaces at the indent;
> apparently the tab takes effect after where ">>>  " would normally
> occur. Of course I can just manually type the four spaces. Alas!
> Perfection here is apparently unattainable! ~(:>))

If you want a decent IDE for Python, run, don't walk, run away from

Under Linux, the vanilla Python interactive interpreter plus a few
basic command line commands is *much* better than IDLE.

IPython is even more powerful, and still easy to use.


Or try bpython:


Or try ActiveState's commercial Python install, which includes a
free IDE:


In my opinion, anyone using IDLE under Linux probably does it
because they like pain, and anyone using it under Windows does so
only because they don't know of the alternatives.


More information about the Tutor mailing list