Sorting Documentation

P

pinkfloydhomer

I want to read a little bit about sorting in Python (sorted() and
method sort()). But I can't seem to find anything in the documentation
at the homepage?

/David
 
P

pinkfloydhomer

For example, where can I find the official documentation on the
list.sort() method?
 
F

Fredrik Lundh

(e-mail address removed) wrote_
I want to read a little bit about sorting in Python (sorted() and
method sort()). But I can't seem to find anything in the documentation
at the homepage?

sorted() is a function that works on arbitrary sequences, and is
described in the "built-in functions" chapter:

http://www.python.org/doc/current/lib/built-in-funcs.html

sort() is a list method, and is documented under sequences:

http://www.python.org/doc/current/lib/typesseq-mutable.html

</F>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,270
Messages
2,571,349
Members
48,035
Latest member
SamuelDieng

Latest Threads

Top