News for hackers. Stuff that matters.
Re:Python with Braces by lutusp on Sunday February 09, 2014 @06:43PM (#7208041)
> I think your criticism would be valid if the braces were optional and tabs still worked ...

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."

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.
Re:Python with Braces by lutusp on Sunday February 09, 2014 @07:13PM (#7208191)
> Of course not. My editor, like any proper editor, automatically inserts spaces when I hit tab.

Which translates to "yes".

Re:Python with Braces by dkuntz2 on Sunday February 09, 2014 @09:38PM (#7208765)
No, it translates to "it inserts soft tabs".
Re:Python with Braces by lutusp on Monday February 10, 2014 @04:18AM (#7209957)
"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"?

Re:Python with Braces by dkuntz2 on Sunday February 09, 2014 @06:59PM (#7208113)
It's generally a given that people use the word `tab` to refer to both hard and soft tabs.
Re:Python with Braces by lutusp on Monday February 10, 2014 @04:19AM (#7209958)
Yes, and soft tabs are fiction. Prove me wrong -- show me a Python specification that tells us what "soft tabs" are and how they are to be used. Post the Unicode code point for a soft tab character.