Skip to main content
10 events
when toggle format what by license comment
Oct 5, 2013 at 3:37 comment added shuttle87 In vim I do the following when editing python in my .vimrc file: :set expandtab to make pressing the tab key create spaces and :set tabstop=4 to make each time I press the tab key make 4 spaces. For emacs: emacswiki.org/emacs/NoTabs. Other editors will let you do the same, you just need to find out how, but in any case if you are using any sort of a good IDE there's no reason that you need to be pressing the space 4 times in a row.
Oct 5, 2013 at 3:31 history edited Indolering CC BY-SA 3.0
Expanded rational
Oct 4, 2013 at 22:00 comment added DXM So you are asking, if C, C++, Java, C#... etc developers have flame wars over tabs/spaces, why don't python make their developers do the same? I think you answered your own question. I personally like the absence of these fights and the ability to view code in any diff/code review tool or any editor and have it be consistent and aligned properly.
Oct 4, 2013 at 21:02 answer added Martijn Pieters timeline score: 3
Oct 4, 2013 at 21:02 answer added riwalk timeline score: 2
Oct 4, 2013 at 21:01 comment added David Hammen Set up your editor / IDE so it accepts your tabs as input but immediately converts them to the right number of spaces.
Oct 4, 2013 at 20:56 comment added user7043 "pressing space 4 times is a PITA" -- every editor under the sun (except nano) allows you to press tab once instead.
Oct 4, 2013 at 20:36 review First posts
Oct 4, 2013 at 20:43
Oct 4, 2013 at 20:31 comment added daniel gratzer Probably because Python Has Opinions. There is only one way to do it and frankly it's just simpler if everyone agrees on one formatting style. I'd be annoyed if I had to reconfigure my editor just to jump between files.
Oct 4, 2013 at 20:21 history asked Indolering CC BY-SA 3.0