Python indentation (3 spaces)

Terry Reedy tjreedy at udel.edu
Fri Oct 5 17:47:35 EDT 2018


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).

-- 
Terry Jan Reedy




More information about the Python-list mailing list