On 6/4/2014 10:53 AM, Mark H Harris wrote:
The topic came up because the C/C++ coders were being encouraged to try Python3 as the language of choice for a new project, and someone said they would never consider Python for a project primary language because of indentation block delimiting. The whole debate, as in most flames, was stupid. The primary paradigm on this topic locally is that indents are bad because malformed or mangled code cannot be reformatted easily (if at all).
Begin solution:':' as the end of a line means 'begin block; indent next line'. If one is using tools that mangle, one can add end-of-block comments: '# end, # end if, # if (end implied), or even just ##. In any case, the stylized comment could mean 'dedent' and code could be reconstituted with all indents stripped. There are probably programs on PyPI to do that. End of excuse.
-- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list