Re:Python with Braces
by lukeschlather on Sunday February 09, 2014 @07:00PM
(#7208120)
Of course not. My editor, like any proper editor, automatically inserts spaces when I hit tab.
> Of course not. My editor, like any proper editor, automatically inserts spaces when I hit tab.
Which translates to "yes".
No, it translates to "it inserts soft tabs".
"Soft tabs" are fiction. Show me the Python specification that says "you cannot use spaces, you must use soft tabs". The fictional soft tabs suffer from the same defect as real tabs -- they're defined in different ways in different places.
Source: https://code.google.com/p/soc/wiki/PythonStyleGuide
Quote: "Indentation: 2 spaces (no tabs)"
Gee, that's funny -- no mention of "soft tabs".
Source: http://www.python.org/dev/peps/pep-0008/
Quote: "Indentation ... Use 4 spaces per indentation level."
Where are the references to "soft tabs"?
It's generally a given that people use the word `tab` to refer to both hard and soft tabs.
Surely you didn't mean tabs?
https://code.google.com/p/soc/wiki/PythonStyleGuide : "Indentation: 2 spaces (no tabs), differs from PEP8"
PEP8 (http://www.python.org/dev/peps/pep-0008/#tabs-or-spaces): "Tabs or Spaces? ... Spaces are the preferred indentation method. ... Python 2 code indented with a mixture of tabs and spaces should be converted to using spaces exclusively."