Awww, 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?
Re:Python best practices
by danohuiginn on Thursday July 10, 2008 @04:28AM
(#242187)
"is 4 really a widespread standard in the Python world?"
yes.
http://www.python.org/dev/peps/pep-0008/
I 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).
What'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.
My god how I wish everyone did this... would make life so much easier.