Python vs. Perl

Greg Ewing see at my.signature
Fri May 25 04:36:43 CEST 2001


Jonathan Gardner wrote:
> 
> The programmer should ask himself, "Is
> this exactly what I want to be doing? Is this comparison a '<' or a '<='? Is
> this off by one?

Most of the time, Python operates at a high enough
level that you don't have to think about such
details. For example, to iterate over the items of
a list you just say

  for x in mylist:
    ...

and you don't have to worry about whether the
indexes go from 1 to n or 0 to n-1, etc.

Certainly you have to think about what you are
doing, but mostly the thoughts are high-level
thoughts that are fast and easy to think. Writing
code "as fast as you can type" is perhaps a
little exaggerated... but not by much!

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list