Going the PL/1 way

Michael Hudson mwh at python.net
Sat Aug 7 17:01:17 EDT 2004


Istvan Albert <ialbert at mailblocks.com> writes:

> Miklós wrote:
> 
> 
> > Yes, this was exactly my point. Performance and GIL. Those are problems.
> > And problems must be solved.  After that add features... if they are really
> > needed.
> 
> nah,
> 
> first we need to attend to pressing needs, such as replacing
> 
> my_list.reverse()
> for item in my_list:
>    ...
> 
> with the incomparably more pythonic:
> 
> for item in reversed(my_list):
>    ...
> 
> and at the same time, we need to replace the ridiculous:
> 
> my_list.sort()
> for item in my_list:
>   ...
> 
> with:
> 
> for item in my_list.sorted():
>    ...
> 
> note the consistency in 'sort' and 'reverse' and the lack of
> that in the usage of sorted and reversed.

Which you've made up: sorted is a builtin in 2.4.

By all means carp about the new features, but -- particularly if
you're going to be sarcastic about it -- please get it right.

Cheers,
mwh

-- 
7. It is easier to write an incorrect program than understand a
   correct one.
  -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html



More information about the Python-list mailing list