Changing tab behavior in Python Interactive mode

Steve Holden steve at
Fri Jan 29 18:47:46 CET 2010

Andrej Mitrovic wrote:
> I've noticed that when running Python in interactive mode (via cmd on
> windows), the first time I hit tab it will move 4 spaces to the right,
> however each new tab will move 8 spaces instead of 4. Why this
> inconsistent behavior? And how could I change this to be consistent
> and always move only 4 spaces?

The first tab you are starting four characters in due to the interpreter
already having printed ">>> ".

Steve Holden           +1 571 484 6266   +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010
Holden Web LLC       

More information about the Python-list mailing list