Going the PL/1 way

Istvan Albert ialbert at mailblocks.com
Sat Aug 7 16:54:29 EDT 2004


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.

Istvan.




More information about the Python-list mailing list