Confused about a list.sort()
james.kew at btinternet.com
Fri Jan 30 22:38:25 CET 2004
"wes weston" <wweston at att.net> wrote in message
news:xsQRb.28535$6O4.748063 at bgtnsc04-news.ops.worldnet.att.net...
> Switch from windoze to linux and provide screen dumps.
> wes at linux:~> python
> Python 2.3.3c1 (#3, Dec 26 2003, 16:36:50)
Ah, that's nice: a simple question about list.sort()'s behaviour answered
with a dose of Linux advocacy. Everyone else managed to answer the question
FWIW, Python works very nicely at the Windows command-line too, "screen
dumps" and all:
ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on
Type "help", "copyright", "credits" or "license" for more information.
although I have to admit I usually prefer PythonWin's interactive window.
ISTR discussion on python-dev about adding a sorted() method to list,
returning a sorted copy of the list -- did that ever reach a conclusion?
More information about the Python-list