Python indentation (3 spaces)

Chris Green cl at isbd.net
Sat Oct 6 05:29:34 EDT 2018


Terry Reedy <tjreedy at udel.edu> wrote:
> On 10/5/2018 4:48 PM, ts9564 at gmail.com wrote:
> > I am new to Python programming but have significant SQL and C experience. 
> My simple question is,"Why not standardize Python indentations to 3 spaces 
> instead of 4 in order to avoid potential programming errors associated 
> with using "TAB" instead of 4 spaces?" 
> 
> IDLE (and other modern editors and IDEs) turns a typed TAB into a 
> user-settable n spaces, where n defaults to 4 (minimum 2, maximum 16).
> 
Other 'modern' editors? :-)  I use a vile clone (hardly modern) and
that gives me every possible option of what to do when a TAB is
entered. 

-- 
Chris Green
·



More information about the Python-list mailing list