En Tue, 08 May 2007 01:33:51 -0300, Steven D'Aprano <[EMAIL PROTECTED]> escribió:
> 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. Ouch! -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list