0

In PEP8 Guide 1. Why we should not use tabs ? instead of four spaces . Where confusion will arise ?

"Use 4-space indentation, and no tabs. 4 spaces are a good compromise between small indentation (allows greater nesting depth) and large indentation (easier to read). Tabs introduce confusion, and are best left out"

4th Jun 2021, 3:47 AM
lisa
2 Respostas
+ 2
because you could easily mix tab and spaces... and you come with indentation errors hard to view ^^ however, don't focus too much on PEP8: that's just recommendations... each compagnie could have its own formating rules, as well as each coders ^^
4th Jun 2021, 3:57 AM
visph
visph - avatar
0
Also, tabs are not always 4 spaces. So code with tabs will render differently in different environments. Worse yet if code mixes tabs and spaces...
5th Jun 2021, 7:24 PM
Emerson Prado
Emerson Prado - avatar