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"
2 Antworten
+ 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 ^^
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...