4 ms·
Always use 4 spaces as indent My god how I wish everyone did this... would make life so much easier.
by tdavis 18y ago
Always use 4 spaces as indent
My god how I wish everyone did this... would make life so much easier.
- spydez 18y agoWhat's wrong with 3? IMO, indent is personal preference, and as long as you're 100% consistent, and stay away from the devil-spawn tab character, you're ok.
- cheponis 18y agoI read a study that showed that 2,3, or 4-space indents were equivalent for readability. Therefore, I always use 2.
- bkovitz 18y agoAwww, I like 3! 3 makes the tab levels very distinct, without wasting space. Of course it's just a matter of personal preference. But, is 4 really a widespread standard in the Python world?
- danohuiginn 18y ago"is 4 really a widespread standard in the Python world?" yes. http://www.python.org/dev/peps/pep-0008/ http://www.python.org/dev/peps/pep-0008/
- bkovitz 18y agoI am so sad to see this. Thanks for posting it, though. Maybe I'll...ghhk..ekkk...switch. I went through the entire PEP and found that I'm following every other convention but two (multiple imports on one line, and I seldom write docstrings).