Python's simplicity philosophy

Paul Rubin http
Wed Nov 19 20:20:10 EST 2003


"A.M. Kuchling" <amk at amk.ca> writes:
> > Huh?!?!  uniq has always to my knowledge only worked on sorted input.
> > Reading the man page on two different systems confirms my knowledge.
> 
> Yes, but uniq doesn't report an error if its input isn't sorted.

Maybe it should.  If its behavior on unsorted input isn't specified,
you shouldn't assume it will act in any particular way.  




More information about the Python-list mailing list