New to Python - block grouping (spaces)

Simmo square.steve at gmail.com
Thu Apr 16 09:37:33 EDT 2015


On 16/04/2015 05:07, Blake McBride wrote:
> Greetings,
>> I am new to Python. I am sorry for beating what is probably a dead horse but I checked the net and couldn't find the answer to my question.
>> I like a lot of what I've seen in Python, however, after 35 years and probably a dozen languages under my belt, I very strongly disagree with the notion of using white space to delimit blocks. Not wanting to beat what I believe is probably a dead horse, I have one question.
>> Is there a utility that will allow me to write Python-like code that includes some block delimiter that I can see, that converts the code into runnable Python code? If so, where can I find it?
>> Thanks!
>> Blake McBride
>Interesting point of view. Likewise, I have used more than a dozen 
languages and I like Python a lot. Why? Because the use of indentation 
is (mostly) unambiguous and I find it a lot cleaner than having to check 
whether I need braces, parentheses or whatever delimiters are correct 
for a particular language. Plus I am relieved of the stylistic debates 
about whether the start-of-block marker starts after the 'IF' or on a 
new line and how the subsequent lines of code should be aligned.
For me, Python is clean and easy to write and, more importantly, I find 
it easier to follow and understand code written by others.
Steve Simmons


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /