Tab completion

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Thu Apr 2 22:58:49 EDT 2009


On Fri, 03 Apr 2009 13:41:50 +1100, Ben Finney wrote:

> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
> 
>> I do not wish to type four literal spaces to indent the 'return' line,
>> or backspace four times to remove it, but with tab-completion I am
>> forced to. I'm used to pressing the TAB key once to get an indent.
>> Within the interpreter, I do not care whether it inserts a tab
>> character or four spaces or seven formfeed characters, so long as the
>> Python parser recognises it as a single indent level and typing
>> backspace once removes that indent level.
> 
> It sounds like, instead of pressing <Tab> once, you can press <Space>
> once and meet your requirements.

Yuck!

Well, okay, technically that would work, but it's seriously disturbing to 
set your indent level to one space. If there's a more elegant solution 
that gives four-space indents I'd prefer that.

Thanks to all for your suggestions.


-- 
Steven



More information about the Python-list mailing list