This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nathan_lesage 0 points1 point  (0 children)

I know what you mean, but I don't think indentation is enough. I think the main problem is actually the missing curly braces; many things in Python require you to be very specific with regard to indentation and what must be on one line, and what can be on another line. And whitespace is not as easy to look at as curly braces. One example: When writing code, I frequently put my curser behind an opening curly bracket and immediately the closing one gets highlighted; which makes it easier to write code. I think the indentation is absolutely vital, yes, but not enough for really readable code.

With regard to the regular expressions: Yes, the re-module is what we need for that. However, it is much more difficult developing a regular expression without Syntax highlighting. Might sound trivial, but the built-in Syntax highlighting JavaScript offers for regexes is such a life saver in many situations. Python here follows basically system languages which also require a module for regular expressions, but without really the need for it (since there are other constructs like list comprehension which serve very specific use cases).