On Tue, 08 May 2007 01:21:37 -0300, Gabriel Genellina wrote: > if not sorted(values): raise ValueError("unsorted values") sorted() doesn't return a flag telling if the values are sorted, it returns a new list containing values sorted. So this line will raise an exception only on an empty sequence. -- Steven.