Skip to main content

Timeline for What are the drawbacks of Python?

Current License: CC BY-SA 3.0

10 events
when toggle format what by license comment
Jan 7, 2013 at 6:59 comment added Zoran Pavlovic @NickRosencrantz You really should be using an IDE for that. A simple press of the tab/alt-tab keys will indent/deindent any code block for you. Not to mention that it automatically aligns for you to current depth, or one depth deeper if you just created an if/method/function. PyDev on Eclipse is my recommendation.
Sep 1, 2011 at 16:08 comment added Niklas Rosencrantz I was going to accept some code I tested so therefore I changed if condition() to if True:#conditation() and I learnt some statements I wrote where never reached and all this because of intendation that otherwise would've been a syntax error. I appeared to have intented too much and therefore some statements were never reached and just as I moved a block one space to the left it just worked again. So it might not always be an advantage to depend on indendation. Now I run the tool reindent.pyregularly and an editor called drPython can move entire blocks which also helps to format code.
Jul 26, 2011 at 2:01 comment added Ben Ok, I take your point. It's not something that has been problematic for me very often though. I find such slight inconveniences well outweighed by the lack of problems caused by the inevitable bad indentation that creeps into code written in languages where the compiler uses brace matching to read the code. Humans tend to find the spatial layout created by indentation easier to understand than scanning for matching braces (it's why we indent C code), so it just seems more logical to have the compiler use indentation too.
Jul 25, 2011 at 23:40 comment added Christopher Mahan @Martin Of Course! if False...
Jul 25, 2011 at 22:23 comment added Martin Vilcans I use the trick of changing if something() to if False and something(). Another trick is to "comment out" using a multi-line string.
Jul 25, 2011 at 22:21 history made wiki Post Made Community Wiki by Martin Vilcans
Jul 25, 2011 at 18:11 comment added Christopher Mahan @ben same here.
Jul 24, 2011 at 14:36 comment added alternative @Ben Temporarily, yes...
Jul 24, 2011 at 6:35 comment added Ben You would seriously edit C or Java code to change the block level of some code without changing its indentation?
Jul 23, 2011 at 7:31 history answered Niklas Rosencrantz CC BY-SA 3.0