Geoffrey Meredith
Thoughts on Technology

Blog

(posted on 30 Oct 2005)

I am starting to warm up to Python after my initial issue with indention controlling the blocking of code. My general sense is that it is an elegant, modern mixture of Basic and Perl. I'm sure that experienced Python programmers would cringe at that comparison but that is what initially came to mind.

My next "shock" was in comparison expressions. For instance the expression a < b == c tests whether a is less than b and also that b equals c. I would have coded that a < b and b == c. Another cool comparison is 'ABC' < 'C' < 'Pascal' < 'Python' where each side of each less-than symbol must be true for the whole expression to be true.