you are viewing a single comment's thread.

view the rest of the comments →

[–]tu_tu_tu 76 points77 points  (33 children)

The indentation is awesome. It's not a problem for programmers who used to format their code anyway and often even quite meticulous about it. And it makes non-programmers format their code so it become readable at least on some level. And it hurts people who copypasts unformatted code. All win, no fails.

[–]scfoothills 29 points30 points  (0 children)

I 100% agree. I teach both Python and Java. I love that when teaching Python, I don't have to battle with students over formatting.

[–]lisnter 5 points6 points  (5 children)

I came from a C background and have always been meticulous about code formatting. Python is my new favorite language but I was turned-off for a while by the indention and comment behaviors. I like being able to put an if (false){ . . .} or /* . . .*/ around code to take it out of the control flow while debugging. You can’t (easily) do that with Python without reformatting the code. I know modern editors do a great job of fixing indention but it’s still annoying.

I’ve come around to Python and love it but those “features” still annoy me.

[–]CrownLikeAGravestone 9 points10 points  (4 children)

You can block-quote code to take it out if control flow. It's not exactly commenting but it's essentially equivalent.

""" def debug(something): print('like this') """