very good reasons?

Janko Hauser jhauser at ifm.uni-kiel.de
Fri Sep 29 16:00:59 EDT 2000


Hope that this is a joke, but form the wonderful lesson just learned,
this would be

>>> a=[2,3,1]
>>> for i in a.sort() or a:
...    print i
... 
1
2
3
>>> 

IMHO this is a real python idiom, like the 'while 1: ... break' thing.

__Janko
-- 
  Institut fuer Meereskunde             phone: 49-431-597 3989
  Dept. Theoretical Oceanography        fax  : 49-431-565876
  Duesternbrooker Weg 20                email: jhauser at ifm.uni-kiel.de
  24105 Kiel, Germany



More information about the Python-list mailing list