Unsorting(randomizing) a sequence

Tim Peters tim_one at email.msn.com
Sun Aug 22 03:11:48 EDT 1999


[Tim, on Python's sort function and its robustness against sick
 inputs]

[Fredrik Lundh]
> how about JPython

Don't know.

> and Viper

*Nobody* knows <wink>.

> and Lumberjack

Ditto.

> and SPython and FooPython and whatever...

Ditto ditto ...

> as far as I can tell, the "spec" says
>
>     sort: sort the items of s in place
>
> and that's about it...

In case of conflict, CPython usually wins.  Is it your contention that
because the spec doesn't say sort must not dump core, therefore it's OK if
it does?  If so, the reference manual is going to need one hell of a lot
more words all over the place <wink>.

in-std-speak-this-kind-of-stuff-is-swept-under-the-"quality-
    of-implementation"-rug-ly y'rs  - tim






More information about the Python-list mailing list