Python's simplicity philosophy

Paul Rubin http
Wed Nov 19 17:32:19 EST 2003


"Andrew Dalke" <adalke at mindspring.com> writes:
> Do you want unix-style unique where repeats are merged into
> one, so that 1 2 2 1 -> 1 2 1 or do you want it to return

That list is not already sorted and so uniqing it should throw an
exception.  Uniq should only have to work on sorted lists.




More information about the Python-list mailing list