A good article that describes the double-underscore surrounded internal methods in a great detail. A must read for every Python developer.
Python is NOT a “free-format” language.
It was designed to be a highly readable language.
It uses whitespace to delimit program blocks, following the off-side rule.
From these points, I don’t think that the off-side rule is good enough to make the program highly readable. Because I have come across Python scripts that are hardly readable.
if row==0: empFirstName='Green' empLastName= 'Red' empAge=35 empDateOfBirth='14/04/2012' empSalary = 5000 process_emp(empFirstName,empLastName,empAge,empDateOfBirth,empSalary)
This could be written in a better way.
if row == 0: empFirstName = 'Green' empLastName = 'Red' empAge = 35 empDateOfBirth = '14/04/2012' empSalary = 5000 process_emp(empFirstName, empLastName, empAge, empDateOfBirth, empSalary)
So, its not just Python; even C++ or Perl can be highly readable by adhering to the style guides and with a little common sense. Programming can be an art when accompanied by Aesthetics